Posts: 223
Threads: 57
Joined: Jul 2012
Reputation:
0
I want to make few heavy vehicles [Hydra , Hunter] and heavy weapons [Minigun , Rocket launcher] only visible to Admins , Can be used by admins only.Not by normal players.
Can anyone tell me how to make ?
Posts: 12
Threads: 5
Joined: Sep 2013
Код:
new weapon = GetPlayerWeapon(playerid);
if(weapon == id || weapon == id || weapon == id || weapon == id || weapon == id)
{
if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
}
Код:
new vehicle = GetVehicleModel(vehicleid);
if(vehicle == id || vehicle == id || vehicle == id || vehicle == id || vehicle == id)
{
if(playerDB[playerid][admin]==false), RemovePlayerFromVehicle(playerid);
}
Posts: 12
Threads: 5
Joined: Sep 2013
Код:
if(dialogid == DIALOGID+7) // Heavy Weapons
{
if(response)
{
if(listitem == 0)
{
if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 35, 500);
}
if(listitem == 1)
{
if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 36, 500);
}
if(listitem == 2)
{
if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 38, 500);
}
if(listitem == 3)
{
if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 9, 500);
}
}
return 1;
}