21.12.2010, 02:56
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
if(vehicleid == GetPlayerVehicleID(i))
{
if(IsPlayerInVehicle(i, vehicle))
{
if(Team[i] == Team[playerid])
{
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+2);
SendClientMessage(playerid, COLOR_ERROR, "ERROR: You can not team jack!");
RemovePlayerFromVehicle(playerid);
}
}
}
}