#include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Job1"); print("--------------------------------------\n"); return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { new vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == 418) //moonbeam { if(GetPlayerScore(playerid) < 50) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xAA3333AA,"You need 50 score to drive this car."); } SetTimerEx("wincash", 60000, true, "i", playerid); } return 1; } //Now outside any callback. forward wincash(playerid); public wincash(playerid) { GivePlayerMoney(playerid, 20); return 1; }
#include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Job1"); print("--------------------------------------\n"); return 1; } #endif // Missed public OnPlayerStateChange(playerid, newstate, oldstate) { new vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == 418) //moonbeam { if(GetPlayerScore(playerid) < 50) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xAA3333AA,"You need 50 score to drive this car."); } SetTimerEx("wincash", 60000, true, "i", playerid); } return 1; } //Now outside any callback. forward wincash(playerid); public wincash(playerid) { GivePlayerMoney(playerid, 20); return 1; }
REMOVE - #if defined FILTERSCRIPT
And put #define FILTERSCRIPT |
#define FILTERSCRIPT