Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:gotols(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 3)
- {
- new string[100],sendername[30];
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- }
- else
- {
- SetPlayerPosEx(playerid, 1529.6,-1691.2,13.3);
- }
- SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
- SetPlayerInterior(playerid,0);
- PlayerInfo[playerid][pInt] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "Warning: Admin %s Teleported to LS.", sendername);
- Adminlog(string);
- if(InHouse[playerid] > -1)
- {
- StopAudioStreamForPlayer(playerid);
- }
- InHQ[playerid] = -1;
- InHouse[playerid] = -1;
- InBussines[playerid] = -1;
- SetPlayerVirtualWorld(playerid,0);
- if(GetPlayerState(playerid) == 2) ACInfo[playerid][acKicked] = 2;
- else ACInfo[playerid][acKicked] = 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement