06.10.2014, 14:45
(
Последний раз редактировалось andreiu95; 06.10.2014 в 15:00.
Причина: i edit a scritp for my problem
)
if(!strcmp(cmdtext, "/cadou", true))
{
new string4[658], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
strcat(string4, "Key activated: cadou\n");
strcat(string4, "\n");
strcat(string4, "In this key you will have:\n");
strcat(string4, "\n");
strcat(string4, "3000000$\n");
strcat(string4, "2 Level");
ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_MSGBOX, "Gift:", string4, "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;
}
{
new string4[658], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
strcat(string4, "Key activated: cadou\n");
strcat(string4, "\n");
strcat(string4, "In this key you will have:\n");
strcat(string4, "\n");
strcat(string4, "3000000$\n");
strcat(string4, "2 Level");
ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_MSGBOX, "Gift:", string4, "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;
}