how to change a command to zcmd ?
#5

why you made so long command it can be done simple as that

PHP код:
CMD:drag(playeridparams[])
{
        new 
name[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME], idsttr[100];
        if(!
IsPlayerConnected(id)) return SCM(playerid0xFF0000FF"Error: Inactive userid!");
        if(
PINFO[playerid][pAdmin] <= 0) return SCM(playerid,COLOR_ERROR,"Error: Your admin level isn't high enough to use this command");
        if(
sscanf(params,"u",id)) return SendClientMessage(playeridCOLOR_YELLOW"Syntax: /drag <PlayerID>");
        if(!
IsPlayerInAnyVehicle(playerid)) return SCM(playerid,COLOR_ERROR,"You are not in a vehicle.");
        new 
newcar GetPlayerVehicleID(playerid);
        
PutPlayerInVehicle(id,newcar,1);
        
GetPlayerName(idname,sizeof(name));
        
GetPlayerName(playeridsendernamesizeof(sendername));
        
format(sttr,sizeof(sttr),"Admin %s drags you to his/her vehicle.",sendername);
        
SCM(idCOLOR_AdminWarnsttr);
        
SCM(playerid,COLOR_ERROR,"Dragged.");
        return 
1;

Reply


Messages In This Thread
how to change a command to zcmd ? - by SH0x - 17.05.2017, 20:57
Re: how to change a command to zcmd ? - by adri[4]Life - 17.05.2017, 21:14
Re: how to change a command to zcmd ? - by BiosMarcel - 17.05.2017, 21:14
Re: how to change a command to zcmd ? - by RxErT - 18.05.2017, 02:23
Re: how to change a command to zcmd ? - by IceBilizard - 18.05.2017, 02:30
Re: how to change a command to zcmd ? - by zedshadowzw - 18.05.2017, 04:17
Re: how to change a command to zcmd ? - by SH0x - 18.05.2017, 06:16
Re: how to change a command to zcmd ? - by RxErT - 18.05.2017, 06:49
Re: how to change a command to zcmd ? - by Spoookymon - 18.05.2017, 07:10

Forum Jump:


Users browsing this thread: 2 Guest(s)