If you want to understand this scripts, i'll give you some informations (
not in the pawn code) so I hope, you will learn more with our famous, helpfull wiki-samp.
pawn Код:
#include <a_samp>
new SFPD; // San Fiero : Police Department.
new ESFPD; // Exit San Fiero : Police Department.
public OnFilterScriptInit()
{
print("\n------------------------------------------------");
print(" San Fiero : Police Departement Enter/Exit Pickup.");
print("------------------------------------------------\n");
//----------------------------------------------------------------------
SFPD = CreatePickup(2894, 1, X, Y, Z, -1);
// Remplace the X, Y, Z, by your coordinates (where we will see the pickup,
// if you don't know to do, use the famous samp_debug.)
ESFP = CreatePickup(2894, 1, X, Y, Z, -1);
// Remplace the X, Y, Z, by your coordinates (where we will see the pickup,
// in the SFPD interriors, use the famous samp_debug.)
return 1;
}
pawn Код:
public OnFilterScriptExit()
{
print("\n------------------------------------------------");
print(" San Fiero : Police Departement.. Shutdown........");
print("------------------------------------------------\n");
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == SFPD)
{
SetPlayerInterior(playerid, 10); // Info by kamzaf
SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); // Info by kamzaf
}
if(pickupid == ESFP)
{
SetPlayerInterior(playerid, 0); // The normal worlds.
SetPlayerPos(playerid, X, Y, Z);
// Remplace the X, Y, Z, by your coordinates (when we will leave the SFPD,
// if you don't know, use our famous samp_debug.)
}
return 1;
}
Correct me if I am wrong
.