20.02.2013, 20:32
Use
place this OnGameModeInit()
if I'm right this should work download this http://adf.ly/JVfHH and put it in your scriptfile and it should work!
pawn Код:
new skinlist = mS_INVALID_LISTID;
pawn Код:
if(strcmp(cmd, "/Buyclothes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtClothShop(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE,"USAGE: /Buyclothes [Skin ID]");
return 1;
}
new level = strval(tmp);
GivePlayerMoney(playerid,-200);
SafeGivePlayerMoney(playerid, - 200);
ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
}
}
return 1;
}
pawn Код:
skinlist = LoadModelSelectionMenu("skins.txt");