zcmd + sscanf
#4

pawn Код:
CMD:unfreeze(playerid, params[])
{
    new targetid, targetname[24]; // obvious
    if(!pack_isAdmin(playerid, 1) return SendClientMessage(playerid, COLOR_ROUGE, noAcces);
    if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "/unfreeze <id>"); // if you didn't type anything after /unfreeze , then message will be sent
    if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ROUGE, noConnected); // if ID is invalid, send error
    GetPlayerName(targetid, targetname, sizeof(targetname));
    UnfreezePlayer(targetid);
    PlayerCuffed[targetid] = 0;
    format(string, sizeof(string), "Le modйrateur/administrateur %s vous unfreeze.", pName[playerid]);
    SendClientMessage(targetid, -1, string);
    return 1;
}
Reply


Messages In This Thread
zcmd + sscanf - by Baltimore - 14.08.2014, 13:24
Re: zcmd + sscanf - by GGW - 14.08.2014, 14:09
Re : zcmd + sscanf - by Baltimore - 14.08.2014, 14:31
Re: zcmd + sscanf - by Affan - 14.08.2014, 14:37
Re : zcmd + sscanf - by Baltimore - 14.08.2014, 14:54
Re: zcmd + sscanf - by GGW - 14.08.2014, 15:17
Re: Re : zcmd + sscanf - by Affan - 14.08.2014, 15:17
Re : zcmd + sscanf - by Baltimore - 14.08.2014, 15:20
Re : zcmd + sscanf - by Baltimore - 14.08.2014, 20:34
Re: zcmd + sscanf - by Stinged - 14.08.2014, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)