20.05.2016, 16:03
I want when the player tape /joueuralpha he can't do this a two times but only one times on his account
there is the code:
Thank for help !
+rep if you found the solution
there is the code:
PHP Code:
COMMAND:joueuralpha(playerid, params[])
{
SendAdminText(playerid, "/joueuralpha", params);
if (GetPVarInt(playerid, "CMD_Used") == 1)
return SendClientMessage(playerid, -1, "Tu peux utiliser cette commandes qu'une seule fois.");
if (APlayerData[playerid][LoggedIn] == false) return 0;
SendClientMessage(playerid, 0xFFFFFFF,"Vous avez bien confirmez votre status de joueur alpha de truckingFR");
SendClientMessage(playerid, 0xFFFFFFF,"Vous aurez maintenant sur le forum le grade JoueurAlpha(en le disans cacaouet par pm а thomas_rp)");
SendClientMessage(playerid, 0xFFFFFFF,"Est vous recevez aussi 850 000$");
new string[128], Name[129];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string),"Le joueur %s а confirmer sont status de Joueur Alpha !", Name);
SendClientMessageToAll(-1, string);
GivePlayerMoney(playerid, 850000);
SetPVarInt(playerid, "CMD_Used", 1);
return 1;
}
+rep if you found the solution