PDA

View Full Version : CMD help?


Chiao
24/09/2013, 02:59 PM
Hello can someone help me make a zcmd that when I type /alounge I get tped there please?
This is where I want the location to be :/
AddPlayerClass(290,493.3492,-22.2997,1000.6797,5.6401,0,0,0,0,0,0); // spawnpoint
Please help me out guys

XStormiest
24/09/2013, 03:01 PM
SetPlayerPos(playerid, 493.3492,-22.2997,1000.6797);
SetPlayerFacingAngle(playerid, 5.6401);

these are the functions
and now the command

CMD:alounge(playerid, params[])
{
SetPlayerPos(playerid, 493.3492,-22.2997,1000.6797);
SetPlayerFacingAngle(playerid, 5.6401);
return 1;
}