08.11.2015, 07:12
PHP код:
CMD:qdm(playerid, params[])
{
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(playerid, COLOR_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(playerid, COLOR_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(playerid, COLOR_RED, "You Left Cbug Deathmatch!");
pInfo[playerid][CBDM] = 0;
}
return 1;
}
PHP код:
SetPlayerPos
PHP код:
OnPlayerSpawn
BTW the post should be 'SetPlayerPos doesn't work'.Sorry