24.08.2012, 13:47
Hi There I am here to Ask you guys How Do I create a teleport and How Do I get the Coordinates?
Hi There I am here to Ask you guys How Do I create a teleport and How Do I get the Coordinates?
|
CMD:teleport( playerid, params[ ] )
{
SetPlayerPos( playerid, X, Y, Z ); // put coordinates on X, Y and Z
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/teleportname", true) == 0)
{
SetPlayerPos(playerid, X, Y, Z); //Replace X, Y and Z with your co-ordinates.
return 1;
}
return 0;
}
CreateObject(19377,1840.29980469,-1721.59960938,5201.50000000,0.00000000,90.00000000 ,0.00000000) |