26.07.2011, 11:15
Don't Matter what Admin system you use
Use this
Use this
pawn Код:
new VipCar1[MAX_PLAYERS];
new VipCar2[MAX_PLAYERS];
new VipCar3[MAX_PLAYERS];
new VipCar4[MAX_PLAYERS];
new VipCar5[MAX_PLAYERS];
new VIP[MAX_PLAYERS];
public OnGameModeInit()
{
// Car
VipCar1[playerid] = AddStaticVehicle(593,1297.6238,1252.8761,11.2798,4 .2079,1,1);
// Car
VipCar2[playerid] = AddStaticVehicle(593,1340.5513,1255.7225,11.2792,1 .6959,1,1);
// Car
VipCar3[playerid] = AddStaticVehicle(593,1344.6190,1237.3309,11.2797,2 70.6658,1,1);
// Car
VipCar4[playerid] = AddStaticVehicle(593,1332.2885,1233.9496,11.2777,1 81.6530,1,1);
// Car
VipCar5[playerid] = AddStaticVehicle(593,1295.3361,1236.9692,11.2841,8 8.7790,1,1);
return 1;
}
if(strcmp(cmdtext, "/makemevip", true)==0)
{
VIP[playerid] == 1;
SendClientMessage(playerid,COLOR,"Your an vip now :D");
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == VipCar1[playerid] || vehicleid == VipCar2[playerid] || vehicleid == VipCar3[playerid] vehicleid == VipCar4 [playerid] vehicleid == VipCar5[playerid]) {
if(VIP[playerid] == 1) {
SendClientMessage(playerid,COLOR,"YOUR AN VIP YAYAYAYA");
}
else if(VIP[playerid] == 0) {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR,"Not Vip");
}
}
return 1;
}