Need help with my Jetpack command.
#2

This should work:

pawn Код:
CMD:jetpack(playerid, params[])
{
new targetid[MAX_PLAYER_NAME]; new string[256];
if(PlayerInfo[playerid][pAdmin] >= 2) return SendClientMessage(playerid, "You're not an Administrator Level 2");
    {
    else if(IsPlayerConnected(playerid)
        {
        if(sscanf(params,"u",targetid)) SendClientMessage(playerid,"Usage: /jetpack (ID/Name);");
            {
            GetPlayerName(playerid, targetid);
            format(string,sizeof(string),"An administrator has given a jetpack to %s", targetid);
            SendClientMessageToAll(-1, string);
            GivePlayerJetpack(targetid);
  return 1;
 }
Reply


Messages In This Thread
Need help with my Jetpack command. - by Magic_Time - 27.12.2012, 05:35
Re: Need help with my Jetpack command. - by XtremeR - 27.12.2012, 05:43
Re: Need help with my Jetpack command. - by Magic_Time - 27.12.2012, 05:48
Re: Need help with my Jetpack command. - by zDevon - 27.12.2012, 05:50
Re : Re: Need help with my Jetpack command. - by lelemaster - 27.12.2012, 05:53
Re: Need help with my Jetpack command. - by Magic_Time - 27.12.2012, 05:56
Re : Need help with my Jetpack command. - by lelemaster - 27.12.2012, 05:57
Re: Need help with my Jetpack command. - by Magic_Time - 27.12.2012, 06:01
Re : Re: Need help with my Jetpack command. - by lelemaster - 27.12.2012, 06:01
Re: Need help with my Jetpack command. - by zDevon - 27.12.2012, 06:12

Forum Jump:


Users browsing this thread: 1 Guest(s)