CreateProperty - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CreateProperty (
/showthread.php?tid=201336)
CreateProperty -
Anteino - 21.12.2010
Hi,
I have a question about creating properties. The SA-MP wiki page says just paste
CreateProperty("my house", 100.0, 200.0, 10.0, 100000, 20000); //(with your own parameters)
in Script_OnGameModeInit. That results in a couple of problems:
1. Pawno does not recognize Script_OnGameModeInit;
2. Pawno does not recognize CreateProperty(); at all
Here is the code of my gamemode.pwn
Код:
#include <a_samp>
#include <float>
main()
{
print("AnteinoServer started.");
}
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"Welcome to Los Santos!",5000,5);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 1754.0000, -1893.9800, 14.5000);
SetPlayerFacingAngle(playerid, 270);
SetCameraBehindPlayer(playerid);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
SetupPlayerForClassSelection(playerid)
{
PlayerPlaySound(playerid,1052,0.0,0.0,0.0);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid);
return 1;
}
public OnGameModeInit()
{
ShowPlayerMarkers(1);
ShowNameTags(1);
return 1;
}
Re: CreateProperty -
willsuckformoney - 21.12.2010
What wiki page has a CreateProperty function? There is no native or Create Property. Also I don't think I'm getting what your problem is or what your doing.
Re: CreateProperty -
Anteino - 21.12.2010
https://sampwiki.blast.hk/wiki/YSI:Adding_Properties is the link.
Want I want to do is to create a car dealership. When one approaches the dealership there should be one of these yellow markers just like when you enter a 24/7. When you walk in this marker, no interiors will be entered, but a few commands will be activated like:
/car buy
/car sell
/car occasion
etcetera