Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <City>
- #define yellow 0xFFFF00AA
- new LV;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Example FS for CityCreate [INC] ");
- print("--------------------------------------\n");
- LV = CityCreate("LasVenturas", 805.7734, 525.5044, 2919.469, 2942.825);
- C_Startup();
- return 1;
- }
- public OnFilterScriptExit()
- {
- DestroyCity(LV);
- C_End();
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- C_OnPlayerConnect(playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- C_OnPlayerDisconnect(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- LV = CityCreateForPlayer("LasVenturas", playerid, 805.7734, 525.5044, 2919.469, 2942.825);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnPlayerEnterCity(playerid,cityid)
- {
- if(cityid == LV)
- {
- SendClientMessage(playerid,0x67F6F6AA,"You have entered the city Las Venturas!");
- }
- return 1;
- }
- public OnPlayerExitCity(playerid,cityid)
- {
- if(cityid == LV)
- {
- SendClientMessage(playerid,0x67F6F6AA,"You have left Las Venturas");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment