23.02.2010, 18:02
Ok, so Pawn wants to do it my/the noobish way? He can get it, try this:
Код:
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); SendClientMessage(playerid, COLOR, "Don't jack team mates!"); } } } return 1; }