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