24.01.2011, 17:58
olб galera sou novo em pwn queria saber como reservar carros
uso gamemode bps
uso gamemode bps
new TesteCars[5];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(vid==TesteCars[0]||vid==TesteCars[1]||vid==TesteCars[2]||vid==TesteCars[3]||vid==TesteCars[4])
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й dos Ballas");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
public OnGameModeInit()
{
TesteCars[0] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0);
TesteCars[1] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0);
TesteCars[2] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0;
TesteCars[3] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0);
TesteCars[4] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0);
return 0;
}
if(vid==AnarchyCar[0]||vid==AnarchyCar[1])
new vehid;
vehid = GetPlayerVehicleID(playerid)
if(vehid==AnarchyCar[0]||vehid==AnarchyCar[1])
new vid = GetPlayerVehicleID(playerid);