08.11.2015, 07:58
Im not using spawn player as a stock.And the coordinate works on code below.
Here is the code :
Sorry but the coordinate get from above code not
Here is the code :
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1212)//This is the ID of the Dialog
{
if(!response)
{
ShowPlayerDialog(playerid, 1212, DIALOG_STYLE_LIST, "Choose Your Rank", "{241ED6}Leader\n{DEE612}Co Leader\n{0FBD0F}Elder", "Choose", "Close");
}
if(response)
{
if(listitem == 0) //Leader
{
SpawnPlayer(playerid);
SetPlayerPos(playerid,1574.9681,-1635.9956,13.5509); // LSPD
SetPlayerSkin(playerid,137);
SendClientMessage(playerid, COLOR_BLUE, "Welcome [SoD] Leader");
GameTextForPlayer(playerid,"*Welcome To "#SERVERNAME"*",3000,3);
pInfo[playerid][LEADER] = 1;
}
if(listitem == 1)//Co Leader
{
SpawnPlayer(playerid);
SetPlayerPos(playerid,2317.3718,-1650.7227,14.2248); // Biker
SetPlayerSkin(playerid,230);
SendClientMessage(playerid, COLOR_YELLOW, "Welcome [SoD] Co Leader !");
GameTextForPlayer(playerid,"*Welcome To "#SERVERNAME"*",3000,3);
pInfo[playerid][COLEADER] = 1;
}
if(listitem == 2)//Elder
{
SpawnPlayer(playerid);
SetPlayerPos(playerid,2511.5886,-1665.9419,13.5726); // Groove Street
SetPlayerSkin(playerid,134);
SendClientMessage(playerid, COLOR_BLUE, "Welcome [SoD] Elder");
GameTextForPlayer(playerid,"*Welcome To "#SERVERNAME"*",3000,3);
pInfo[playerid][ELDER] = 1;
}
}
}
return 1;
}
PHP код:
OnPlayerSpawn