30.01.2010, 19:57
Hello i got this lines :
And i want to add if(OnDuty[playerid]==0)
it kicks you off the bike. But how do i do it correctly so it wont give me errors ?
And i want to add if(OnDuty[playerid]==0)
it kicks you off the bike. But how do i do it correctly so it wont give me errors ?
Code:
if (IsACopCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {} else { //WantedPoints[playerid]+=2; //SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle"); new Float:cx, Float:cy, Float:cz; GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } }