only one time the player can do the command
#2

PHP код:
COMMAND:alphajoueur(playeridparams[])
{
    
SendAdminText(playerid"/alphajoueur"params);
    if (
GetPVarInt(playerid"CMD_Used") == 1)
        return 
SendClientMessage(playerid, -1"You can only use this command once.");
    
// the code here ?
    
if (APlayerData[playerid][LoggedIn] == false) return 0;
    
SendClientMessage(playerid0xFFFFFFF,"Vous avez bien confirmez votre status de joueur alpha de truckingFR");
    
GivePlayerMoney(playerid850000);
    
SetPVarInt(playerid"CMD_Used"1);
    return 
1;

Reply


Messages In This Thread
only one time the player can do the command - by Eymeric69 - 19.05.2016, 17:20
Re: only one time the player can do the command - by Sjn - 19.05.2016, 17:22
Re: only one time the player can do the command - by Eymeric69 - 19.05.2016, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)