07.11.2010, 02:01
How car i make so only admins can drive these cars?
And
How do i add NOS? I have added 10x nos in MTA but when ill go ingame, it has not NOS
Here is an example script:
And
How do i add NOS? I have added 10x nos in MTA but when ill go ingame, it has not NOS
Here is an example script:
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n-----------------------------------------");
print(" Example By Larsey123");
print("-------------------------------------------\n");
//Vehicles
AddStaticVehicleEx(562,927.07006836,2083.21264648,10.57386208,180.00000000,-1,1,15); //Elegy
AddStaticVehicleEx(562,930.43939209,2083.34375000,10.57386208,180.00000000,-1,1,15); //Elegy
AddStaticVehicleEx(562,933.63378906,2083.46875000,10.57386208,180.00000000,-1,1,15); //Elegy
AddStaticVehicleEx(562,937.17858887,2083.60742188,10.57386208,180.00000000,-1,1,15); //Elegy
AddStaticVehicleEx(562,940.72326660,2083.73437500,10.57386208,180.00000000,-1,1,15); //Elegy
AddStaticVehicleEx(562,944.45129395,2083.73437500,10.57386208,180.00000000,-1,1,15); //Elegy
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Whatever", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid)==1)
{
SetPlayerPos(playerid,983.2335,2133.0151,10.8203);
}
return 1;
}
return 0;
}