Jetpack
#5

Problem -.-

Код:
if(strcmp(cmd, "/jetpack", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
      tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_DGOLD, "KORISTENJE: /jetpack [ID/DioImena]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 4)
			{
			    if(IsPlayerConnected(giveplayerid))
			    {
			        if(giveplayerid != INVALID_PLAYER_ID)
			        {
					    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
						return 1;
					}
				}//not connected
			}
			else
			{
				format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
				SendClientMessage(playerid, COLOR_GRAD1, string);
			}
		}
		return 1;
	}
This is my command, but when i write /jetpack and a another ID i became the jetpack pls help
Reply


Messages In This Thread
Jetpack - by Edin Black - 09.05.2012, 14:15
Re: Jetpack - by SuperViper - 09.05.2012, 14:21
Re: Jetpack - by TheDominator - 09.05.2012, 14:25
Re: Jetpack - by Edin Black - 09.05.2012, 14:26
Re: Jetpack - by Edin Black - 09.05.2012, 14:40
Re: Jetpack - by john_jenkins - 09.05.2012, 14:57

Forum Jump:


Users browsing this thread: 3 Guest(s)