30.09.2011, 15:01
hey i made that
Im using PPC_Trucking...why if i use that fs the other commands arent working??
HELP
PHP Code:
#include <a_samp>
#include <a_players>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#endif
public OnFilterScriptInit()
{
SendClientMessageToAll(0xFFFF00FF,"Seatbelt loaded!");
SetTimer("message", 40000, true);
print("\n--------------------------------------");
print(" SeatBelt system running!");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
SendClientMessageToAll(0xFFFF00FF,"Seatbelt unloaded!");
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, 0x00FF00FF,"Click /seatbelt or you will get wanted!");
return 1;
}
forward message();
public message()
{
for(new playerid; playerid != MAX_PLAYERS; ++playerid)
{
if (!IsPlayerConnected(playerid))continue;
if(IsPlayerInAnyVehicle(playerid))
{
new wantedlevel = GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid,wantedlevel + 2);
SendClientMessage(playerid,0xFF0000FF,"You didnt used seatbelt!");
SendClientMessage(playerid,0xFF0000FF,"You are wanted!");
PlayCrimeReportForPlayer (playerid, playerid, 16);
}
}
return 1;
}
public OnPlayerCommandText (playerid, cmdtext [])
{
if( !strcmp(cmdtext, "/seatbelt"))
if(IsPlayerInAnyVehicle(playerid))
SendClientMessage(playerid, 0x00FF00FF,"Thank you for using seatbelt!");
return 1;
}
HELP