07.10.2014, 05:16
pawn Код:
if(!strcmp(cmdtext, "/cadou", true))
{
new stringtext[658], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
strcat(stringtext, "Key activated: cadou\n", sizeof(stringtext));
strcat(stringtext, "Key activated: cadou\n\n",sizeof(stringtext));
strcat(stringtext, "In this key you will have:\n\n",sizeof(stringtext));
strcat(stringtext, "3000000$\n",sizeof(stringtext));
strcat(stringtext, "2 Level",sizeof(stringtext));
ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_MSGBOX, "Gift:", stringtext, "Okay", "");
PlayerInfo[playerid][pCash] += 3000000;
PlayerInfo[playerid][pLevel] += 2;
printf("Key activated: cadou");
printf("Player: %s", pName);
SetTimerEx("gKey", 3600, false, "i", playerid);
return 1;
}