CMD doesn't work
#1

PHP код:
CMD:qdm(playeridparams[])
{
if(
pInfo[playerid][CBDM] == 0) return SendClientMessage(playerid,COLOR_RED,"You're not in any deathmatch!");
if(
pInfo[playerid][LEADER] == 1)
{
SpawnPlayer(playerid);
SetPlayerPos(playerid,2511.5886,-1665.9419,13.5726);
SetPlayerSkin(playerid,137);
SendClientMessage(playeridCOLOR_RED"You Left Cbug Deathmatch!");
pInfo[playerid][CBDM] = 0;
}
if(
pInfo[playerid][COLEADER] == 1)
{
SpawnPlayer(playerid);
SetPlayerPos(playerid,2317.3718,-1650.7227,14.2248);
SetPlayerSkin(playerid,230);
SendClientMessage(playeridCOLOR_RED"You Left Cbug Deathmatch!");
pInfo[playerid][CBDM] = 0;
}
if(
pInfo[playerid][ELDER] == 1)
{
SpawnPlayer(playerid);
SetPlayerPos(playerid,2511.5886,-1665.9419,13.5726);
SetPlayerSkin(playerid,134);
SendClientMessage(playeridCOLOR_RED"You Left Cbug Deathmatch!");
pInfo[playerid][CBDM] = 0;
}
return 
1;

This is my code.The problem is this
PHP код:
SetPlayerPos 
teleport me to a weird place.I got this coordinate from
PHP код:
OnPlayerSpawn 
and its work.But when use this cmd,its take me to a wrong place.

BTW the post should be 'SetPlayerPos doesn't work'.Sorry
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)