27.12.2011, 14:09
Код:
public OnPlayerSpawn(playerid) { SetPlayerCheckpoint(playerid, -30.4957, -55.6401, 1003.5469, 3.0); return 1; }
Код:
public OnPlayerEnterCheckpoint(playerid) { ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Shop","\nMP3 Player","Buy","Cancel"); return 1; }
Код:
if(dialogid == 7 && response) { switch(listitem) { case 0: { GivePlayerMoney(playerid, -1000); SendClientMessage(playerid, COLOR_YELLOW, "You bought an mp3 player"); } } }
And if a player already has it it would say
Код:
SendClientMessage(playerid, COLOR_YELLOW, "Already Have an MP3 Player");