12.04.2012, 05:55
Hello everyone, i need some help from you, again!
All teleports in my server, when player teleport for example to drift1, send message to all players, that he teleport to drift1.
The code is :
So, i want to create a command, that will disable this for player who dont like to see it.
Any help please?
Thank you!
All teleports in my server, when player teleport for example to drift1, send message to all players, that he teleport to drift1.
The code is :
pawn Код:
CMD:drift1(playerid, params[])
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
ResetPlayerWeapons(playerid);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-308.3555,1527.1465,75.3594);
}
else {
SetPlayerPos(playerid,-350.2008,1533.3462,75.3594);
SetPlayerFacingAngle(playerid, 208.6879);
SetCameraBehindPlayer(playerid);
}
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), "{FFFF00}%s(%d) {FFFFFF}teleported to /drift1", name,playerid);
SendClientMessageToAll(-1, string3);
return 1;
}
Any help please?
Thank you!