17.04.2014, 19:23
i need the command /gotoc (c=coordonate)
ex: /gotoc 288.745971,169.350997,1007.171875
ex: /gotoc 288.745971,169.350997,1007.171875
i need the command /gotoc (c=coordonate)
ex: /gotoc 288.745971,169.350997,1007.171875 |
YCMD:gotoc(playerid,params[],help)
{
if(help) SendClientMessage(playerid,gray,"/gotoc Is used to teleport yourself to a specific position on the map.");
//add some admin restrictions or use the features offered by YCMD
new Float:p[3];
if(sscanf(params,"fff",p[0],p[1],p[2])) return SendClientMessage(playerid,red,"USAGE: /gotoc [X] [Y] [Z]");
//could add some check here if player is in car or not
SetPlayerPos(playerid,p[0],p[1],p[2]);
GameTextForPlayer(playerid,"Teleported!",3000,3);
return 1;
}
if (sscanf(params, "p<,>fff", p[0], p[1], p[2])) ...