22.12.2011, 17:49
Hi, when my players type /ls I want a message to be sent to rcon admins saying someone has teleported.
The code above will only send the teleport message to admins if an admin typed the command.
Please can someone help me!
Thanks in advance
pawn Код:
if (strcmp("/ls", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid)) // Please tell me how to do this!
{
SendClientMessage(playerid, COLOR_WHITE, "Someone Has Teleported To LS");
}
RemovePlayerFromVehicle(playerid);
carmenuENABLED[playerid] = 1;
if(IsPlayerInAnyVehicle(playerid))
{
new getvehicle = GetPlayerVehicleID(playerid);
SetVehiclePos(getvehicle, 1452.6721,-2424.0176,13.5547);
}
else
{
SetPlayerPos(playerid, 1445.8578,-2416.9778,13.8681);
}
return 1;
}
Please can someone help me!
Thanks in advance