Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:gotopos(playerid, params[])
- {
- new Float:PosX, Float:PosY, Float:PosZ, name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- if(sscanf(params, "fff", PosX, PosY, PosZ)) return SendClientMessage(playerid, Orange, "Usage: {33CCFF}/gotopos {FFFFFF}x, y, z");
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SetVehiclePos(GetPlayerVehicleID(playerid), PosX, PosY, PosZ);
- }
- else
- {
- SetPlayerPos(playerid, PosX, PosY, PosZ);
- }
- new posstring[128];
- format(posstring, sizeof(posstring), "** %s {33CCFF}has teleported to {AFAFAF}%f, %f, %f {FF9900}**",name, PosX, PosY, PosZ);
- MsgAll(0xFF9900AA, posstring);
- SetPlayerInterior(playerid,0);
- }
- return 1;
Advertisement
Add Comment
Please, Sign In to add comment