Command help please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command help please (
/showthread.php?tid=524368)
Command help please -
KiM0Ro - 06.07.2014
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;
}