CMD doesn't work
#5

Im not using spawn player as a stock.And the coordinate works on code below.
Here is the code :
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
if(
dialogid == 1212)//This is the ID of the Dialog
{
if(!
response)
{
ShowPlayerDialog(playerid1212DIALOG_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(playeridCOLOR_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(playeridCOLOR_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(playeridCOLOR_BLUE"Welcome [SoD] Elder");
GameTextForPlayer(playerid,"*Welcome To "#SERVERNAME"*",3000,3);
pInfo[playerid][ELDER] = 1;
}
}
}
return 
1;

Sorry but the coordinate get from above code not
PHP код:
OnPlayerSpawn 
Reply


Messages In This Thread
CMD doesn't work - by Sh4d0w2 - 08.11.2015, 07:12
Re : CMD doesn't work - by StreetRP - 08.11.2015, 07:45
Re: CMD doesn't work - by Ritzy2K - 08.11.2015, 07:50
Re: CMD doesn't work - by Sellize - 08.11.2015, 07:50
Re: CMD doesn't work - by Sh4d0w2 - 08.11.2015, 07:58
Re : CMD doesn't work - by StreetRP - 08.11.2015, 08:04
Re: CMD doesn't work - by Sh4d0w2 - 08.11.2015, 08:07
Re: CMD doesn't work - by Sh4d0w2 - 08.11.2015, 09:17
Re: CMD doesn't work - by Ritzy2K - 08.11.2015, 09:23
Re: CMD doesn't work - by Sh4d0w2 - 08.11.2015, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)