04.03.2015, 19:53
Quote:
pawn Код:
|
how to use it on:
Код:
if(dialogid == DIALOG_FOODKIOSK) { if(response) { if(listitem == 0) { if(GetPlayerCash(playerid) < 30) return SCM(playerid, COLOR_GREEN, "[PRODAVAC]: "COL_WHITE"Nemate dovoljno novaca. Hotdog kosta 3$."); if(PlayerInfo[playerid][pSnaga] == 100) return SCM(playerid, COLOR_GREEN, "[ZIVOT]: "COL_WHITE"Ne mozete vise jesti."); SendClientMessage(playerid, COLOR_GREEN, "[PRODAVAC]: "COL_WHITE"Kupili ste hotdog. Dobar tek."); GivePlayerCash(playerid, -3); PlayerInfo[playerid][pSnaga] += 7; SetPlayerHealth(playerid, +7); } // } return 1; }