Command help please
#1

Hi i need help,i don't think how to make this command,for only 1 use/per player,command:

if (strcmp(cmd, "/firstgift", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Nu esti logat!");
return 1;
}
if (PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, " Trebuie sa ai level 2!");
return 1;
}
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] +250000;
PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
format(string, 256, "{FF0000}Felicitari,prin acest gift ne aniversam deschiderea!",PlayerInfo[playerid][gPupgrade]);
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)