*** Terrible Title Removed - 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)
+--- Thread: *** Terrible Title Removed (
/showthread.php?tid=387343)
*** Terrible Title Removed -
Akcent_Voltaj - 24.10.2012
i forgot, i want so if hes admin he doesent get removed from vehicle, only if im not admin to remove me from vehicle..
PHP код:
if(IsPlayerAdmin(playerid))
{
RemovePlayerFromVehicle(playerid);
return 1;
}
Re: silly problem -
Virus. - 24.10.2012
if(!IsPlayerAdmin(playerid))
{
RemovePlayerFromVehicle(playerid);
return 1;
}
Re: silly problem -
Riddick94 - 24.10.2012
Exlamation mark means if player is NOT an admin. You can use exlamation mark or just after playerid closing bracket use double equal and put value 0 which will mean the same.
Re: silly problem -
Akcent_Voltaj - 24.10.2012
Quote:
Originally Posted by Virus.
if(!IsPlayerAdmin(playerid))
{
RemovePlayerFromVehicle(playerid);
return 1;
}
|
so this will not remove admins from vehicles?
Re: silly problem -
Riddick94 - 24.10.2012
Did you read my post and his?