Jump to content
  • 0

Look Here


cocainexxxx

Question

Vreau ca la comanda /su adica cea cu care dau wanted la un player sa pot pune si sa dau wanted level pentru ca la mine am facut doar cu /su [PlayerId/Name] [Reason] si vreau sa fie /su [PlayerID/Name] [WantedLevel] [Reason] si as vrea sa stiu exact cum sa fac.

Si vreau sa fac din Primar sa fie factiune si cum nu am gasit un tutorial mai bun am sa postez aici.

Si as mai vrea sa stiu cum pun obiecte in niste interioare pentru ca in MTA SA nu gasesc interior de la acel loc exact si nu stiu cum sa fac sa ma duc exact acolo sa pun obiect.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

uite comanda

    if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /(su)spect [playerid/PartOfName] [wantedlevel] [reason]");
				return 1;
			}
			new playa;
			new money;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			money = strval(tmp);
			if (IsACop(playerid))
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
			            new length = strlen(cmdtext);
						while ((idx < length) && (cmdtext[idx] <= ' '))
						{
							idx++;
						}
						new offset = idx;
						new result[64];
						while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
						{
							result[idx - offset] = cmdtext[idx];
							idx++;
						}
						result[idx - offset] = EOS;
						if(!strlen(result))
						{
							SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /(su)spect [playerid/PartOfName] [wantedlevel] [reason]");
							return 1;
						}
						if (gTeam[playa] == 2 || IsACop(playa))
						{
						    SendClientMessage(playerid, COLOR_WHITE, " You can't suspect cops !");
						    return 1;
						}
						new wlevel = WantedLevel[playa];
				        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
      					GetPlayerName(playerid, sendername, sizeof(sendername));
                        WantedLevel[playa] = money;
						SetPlayerWantedLevel(playa, money);
						format(string, sizeof(string), "You've commited a Crime ( %s ). Reporter: %s.", result, sendername);
						SendClientMessage(playa, COLOR_LIGHTRED, string);
						format(string, sizeof(string), "Current Wanted Level: %d", wlevel);
						SendClientMessage(playa, COLOR_YELLOW, string);
						for(new i = 0; i < MAX_PLAYERS; i++)
						{
							if(IsPlayerConnected(i))
							{
					    		if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2)
					    		{
									format(string, sizeof(string), "HQ: All Units APB: Reporter: %s", sendername);
									SendClientMessage(i, TEAM_BLUE_COLOR, string);
									format(string, sizeof(string), "HQ: Crime: %s, Suspect: %s", result, giveplayer);
									SendClientMessage(i, TEAM_BLUE_COLOR, string);
								}
							}
						}
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_WHITE, "You are not a Cop !");
			}
		}
		return 1;
	}

vezi k in mta in bara de sus cu instrumente e una la care scrie interiors sau ceva de genu

acolo alegi un interior si pui obiectele cum vrei u

dak nu ai inteles spune si iti fac niste poze sa intelgi

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.