Change command to zcmd
#7

You don't need IsPlayerConnected(), they wouldn't be able to use the CMD if they weren't connected.
pawn Код:
CMD:i(playerid, params[])
{
    new ID,string[256],string2[256],name[60];
    if(sscanf(params, "i", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /i [id]");
    else
    {
        HideDraw(playerid);
        GetPlayerName(ID, name, 60);
        new carid = GetPlayerVehicleID(ID);
        TextDrawShowForPlayer(playerid,text44);
        TextDrawShowForPlayer(playerid,text45);
        TextDrawShowForPlayer(playerid,PCBOX);
        if(!IsPlayerInAnyVehicle(ID))
        {
            format(string, 256, "~y~Player Info: ~r~~h~%s[%d]~n~~n~~g~Location:~w~%s~n~~g~Money:~w~%d~n~~g~Wanted Level:~w~%d~n~~g~Drive:~w~none", name, ID, ReturnPlayerZone(ID),GetPlayerMoney(ID),GetPlayerWantedLevel(ID));
        }
        else if(IsPlayerInAnyVehicle(ID))
        {
            format(string, 256, "~y~Player Info: ~r~~h~%s[%d]~n~~n~~g~Location:~w~%s~n~~g~Money:~w~%d~n~~g~Wanted Level:~w~%d~n~~g~Drive:~w~%s", name, ID, ReturnPlayerZone(ID),GetPlayerMoney(ID),GetPlayerWantedLevel(ID),VehicleNames[GetVehicleModel(carid)-400]);
        }
        TextDrawSetString(text44,string);
        format(string2,256,"~n~~n~~n~~n~~n~~n~~n~~w~Type ~r~~h~LMB ~w~For Hide Thes~n~~w~Boxes!");
        TextDrawSetString(text45,string2);
    }
    return 1;
}
Reply


Messages In This Thread
Change command to zcmd - by sscarface - 17.01.2013, 19:47
Re: Change command to zcmd - by zde5 - 17.01.2013, 19:57
Re: Change command to zcmd - by sscarface - 17.01.2013, 20:00
AW: Change command to zcmd - by Blackazur - 17.01.2013, 20:01
Re: Change command to zcmd - by zde5 - 17.01.2013, 20:01
Re: Change command to zcmd - by sscarface - 17.01.2013, 20:03
Re: Change command to zcmd - by Lynn - 17.01.2013, 20:05
Re: Change command to zcmd - by sscarface - 17.01.2013, 20:07
Re: Change command to zcmd - by Lynn - 17.01.2013, 20:23
Re: Change command to zcmd - by sscarface - 17.01.2013, 20:25

Forum Jump:


Users browsing this thread: 5 Guest(s)