ZCMD not working.
#2

pawn Код:
CMD:cell(playerid, params[])
{
    if(PlayerData[playerid][LSPDRank] < 2)
    {
        new targetid, name[MAX_PLAYER_NAME], othername[MAX_PLAYER_NAME], time;
        if(sscanf(params, "ii", params)) return SendClientMessage(playerid, GRAY, "Function : /cell [ id ] [ minutes ] !");
        if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, GRAY, "This player is not connected !");
        if(PlayerData[playerid][Duty] >= 2)
        {
            new message[128], info[128];
            SetPlayerPos(targetid, 264.6347,86.6351,1001.0391);
            SetPlayerInterior(targetid, 6);
            GetPlayerName(playerid, name, sizeof(name));
            GetPlayerName(targetid, othername, sizeof(othername));
            format(message, sizeof(message), "[LSPD] Police Cadet %s has jailed %s for #d minutes.", name, othername, time);
            SendClientMessageToAll(GRAY, message);
            format(info, sizeof(info), "[LSPD] Your weapons and items have been taken away by Police Cadet %s", name);
            SendClientMessage(targetid, GRAY, info);
        }
        else SendClientMessage(playerid, GRAY, "You're not on police duty !");
    }
    else SendClientMessage(playerid, GRAY, "You must be an Academy Cadet / Agent In Training or higher to use this command !");
    return 1;
}
Did you tried like this. I know you have ZCMD included but download it again and put it into includes folder in your pawno folder.
Reply


Messages In This Thread
ZCMD not working. - by stix - 02.11.2012, 18:56
Re: ZCMD not working. - by RedJohn - 02.11.2012, 19:11
Re: ZCMD not working. - by tyler12 - 02.11.2012, 19:12
Respuesta: ZCMD not working. - by stix - 02.11.2012, 19:45
Re: ZCMD not working. - by tyler12 - 02.11.2012, 19:51
Re: ZCMD not working. - by ViniBorn - 02.11.2012, 20:34

Forum Jump:


Users browsing this thread: 1 Guest(s)