SA-MP Forums Archive
їCуmo hago un comando? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: їCуmo hago un comando? (/showthread.php?tid=574010)



їCуmo hago un comando? - Thewin - 12.05.2015

Un comando que me lleve a la cordenada que yo ponga, ejemplo /irc -477.7212,-539.0526,25.8819 y me lleva.



Respuesta: їCуmo hago un comando? - Zume - 12.05.2015

creo que podrнa ser asн

PHP код:
COMMAND:gotopos(playerid, params[])
{
    new
        
Float:pPos[3];
        
    if(
sscanf(params, "p<,>fff", pPos[0], pPos[1], pPos[2]))
        return 
SendClientMessage(playerid, 0xFFFFFFFF, "/gotopos [posx] [posy] [posz]");
    
SetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
    return 
1;
}