H-Team Car Jack
RQ:
I Took Some Idea From Other Theards
Info:
When A Player Try To Jack His Teammate Vehicle He Will Be Kiked From It
PHP Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && i != playerid)
{
if(gTeam[i] == gTeam[playerid] && GetPlayerVehicleID(i) == vehicleid)
{
new
Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x, y, z);
SetPlayerPos(playerid, x, y, z + 10);
GameTextForPlayer(playerid,"~<~~r~Team Jack~>~ ~w~Not Allowed!",3000,3);
}
}
}
return 1;
}