All pastes #336419 Raw Edit

Smugller

public cpp v1 · immutable
·published 2007-02-02 00:45 UTC
rendered paste body
SetTimer("AreaCheck", 1000, 1);AreaCheck(){  for(new i=0; i<MAX_PLAYERS; i++ )  {    if(IsPlayerConnected(i))    {       if(IsPlayerInArea(i, minx, maxx, miny, maxy))       {        SendClientMessage(i, YOURCOLOR, "Wysiadka");        RemovePlayerFromVehicle(i);       }    }  }}IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy){new Float:x, Float:y, Float:z;GetPlayerPos(playerid, x, y, z);if (x > minx && x < maxx && y > miny && y < maxy) return 1;return 0;}