05.08.2013, 01:11
hello i created this by watching a video tutorial on *******
and it works fine but one big problem is there any way i can add private cars more the easy way and not only two i want like 20-25 so please if any one knows an easy method to add more reply asap
pawn Код:
new vcar
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid =GetPlayerVehicleID(playerid);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof pname);
if (newstate == PLAYER_STATE_DRIVER)
{
if (vehicleid == vcar)
{
if(strcmp(pname, "[XL]kaos999", true) == 0)
{
SendClientMessage(playerid, COLOR_RED, "WELCOME VIP[XL]KAOS999");
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "THIS VEHICLE ONLY BELONGS TO VIP[XL]KAOS999");
}
}
}
return 1;
}
public OnFilterScriptInit()
{
vcar = AddStaticVehicleEx(579, 263.2821, -1377.5272, 53.0415, 305.2861, 1, 1, 15);
return 1;
}