07.10.2012, 10:36
Hello guyz, I wanted to add some skins. But it is not working! Plz help!
Heres the code:
Heres the code:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(gTeam[playerid] == HUMAN)
{
GameTextForPlayer(playerid,"~b~Human",2000,6);
return 0;
}
}
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(gTeam[playerid] == HUMAN)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your skin", "Skin ID (16)\nSkin ID (110)\nSkin ID (7)", "Choose", "");
return 1;
}
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
AddPlayerClass(16,1756.4003,-1645.9061,14.3910,84.6941,0,0,0,0,0,0); // Request human 2
}
case 1:
{
AddPlayerClass(110,1653.8729,-1659.1406,22.5156,180.0620,0,0,0,0,0,0); // Request human 3
}
case 2:
{
AddPlayerClass(7,1359.9155,-1772.3690,13.4787,269.0417,0,0,0,0,0,0); // Request human 4
}
}
}
}
}
return 1;
}