Ladmin tele player in car script - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Ladmin tele player in car script (
/showthread.php?tid=122284)
Ladmin tele player in car script -
fsnameless - 21.01.2010
note only works for ladmin4v2
Code Usage /getincar <playerid>
Base Of Script Ladmin2v4 get command just edited it around for people to use i dont know if i have permission to release but its just to help people =)
pawn Код:
dcmd_getincar(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 3|| IsPlayerAdmin(playerid)) {
if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /getincar [playerid]");
new player1, string[128];
if(!IsNumeric(params)) player1 = ReturnPlayerID(params);
else player1 = strval(params);
if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {
CMDMessageToAdmins(playerid,"Get In My Car Mister");
PutPlayerInVehicle(player1,GetPlayerVehicleID(playerid),1);
format(string,sizeof(string),"You have been teleported to Administrator \"%s's\" car", pName(playerid) ); SendClientMessage(player1,blue,string);
format(string,sizeof(string),"You have teleported \"%s\" into your car", pName(player1) );
return SendClientMessage(playerid,blue,string);
} else return SendClientMessage(playerid, red, "Player is not connected or is yourself");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Place This With the dcmd things
pawn Код:
dcmd(getincar,8,cmdtext);