Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Nota* Non è un Fs Solo comando.
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new
- cmd[256],
- idx;
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmd, "/goto", true) == 0) {
- new
- tmp[250],
- Float:pos[3],
- vw,
- int;
- tmp = strtok(cmdtext, idx);
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xff000000, "Devi Essere admin per usare questo Comando!");
- if(!strlen(tmp)) return SendClientMessage(playerid, 0xff000000, "[USA] /goto ID");
- int = GetPlayerInterior(strval(tmp));
- vw = GetPlayerVirtualWorld(strval(tmp));
- GetPlayerPos(strval(tmp), pos[0], pos[1], pos[2]);
- SetPlayerInterior(playerid, int);
- SetPlayerVirtualWorld(playerid, vw);
- SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment