08.01.2014, 00:08
pawn Код:
new VehiCart;
new cart[MAX_PLAYERS];
public OnGameModeInit()
{
VehiCart = CreateVehicle(509, 1805.5453, -1902.0564, 12.8976, 84.0000, -1, -1, 100);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
if(vehicleid == VehiCart && cart[playerid] != 0)
{
return 1;
}
else
{
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SendClientMessage(playerid, red, "No tienes el oficio de Cartero");
}
return 1;
}