Nem rég csináltam/segítettem másoknak ilyen sciptben.
De azért újra megírom még egyszer
[pawn]#include <a_samp>
new bankrablaspickup;
public OnFilterScriptInit()
{
bankrablaspickup = CreatePickup(1212,1,0.0,0.0,5,0);
print(\"\\n--------------------------------------\");
print(\" Bankrablkás by [R]obo[T] a.k.a Kovacs\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
DestroyPickup(bankrablaspickup);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == bankrablaspickup)
SendClientMessageToAll(0xAAAAAAAA,\"{1900FF}Valaki kirabolta a Caligua Kaszinót! Kapják el!\");
GetPlayerWantedLevel(playerid);
SetPlayerWantedLevel(playerid, 1);
return 1;
}
public OnPlayerDeath(playerid,killerid,reason)
{
SetPlayerWantedLevel(playerid, 0);
return 1;
}
[/pawn]