07.08.2012, 20:45
Im trying to add this map to a friend's SAMP server and cannot because I do not have knoledge of using the function RemoveBuildingForPlayer.
Thing is the default function is
That's the default code from the samp wikia, thing is when i goto his script he already has something filled up there...
So like... I tried putting in another public OnPlayerConnect but gave me ton's of error's.
And this is the mapping code im trying to input
So Is there a idffrent way to do this or something? please help me im a noob at scripting
[EDIT]:I even tried deleteing the OnPlayerConnect he already had there but... Thing's didin't go well.
Thing is the default function is
Код:
public OnPlayerConnect(playerid)
{
// When the player connects model "615" which is veg_tree3 will be deleted within a range of 200.0
// from the point: 0.0, 0.0, 0.0, which is the center of San Andreas.
RemoveBuildingForPlayer(playerid, 615, 0.0, 0.0, 0.0, 200.0);
return 1;
}
Код:
public OnPlayerConnect(playerid)
{
LoggedTime[playerid] = 0;
new string[256];
gPlayerLogged[playerid] = 0;
gAdminLogged[playerid] = 0;
new plname[MAX_PLAYER_NAME],tmpvar;
GetPlayerName(playerid, plname, sizeof(plname));
if(!NameIsRP(plname))
{
SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: Your name is not acceptable.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Hint: your name must be in the format Firstname_Lastname.");
Kick(playerid); //yes, use Kick here because theres no data to save
return 1;
And this is the mapping code im trying to input
Код:
RemoveBuildingForPlayer(playerid, 5535, 1918.8516, -1776.3281, 16.9766, 0.25); RemoveBuildingForPlayer(playerid, 5551, 2140.5156, -1735.1406, 15.8906, 0.25); RemoveBuildingForPlayer(playerid, 5409, 1918.8516, -1776.3281, 16.9766, 0.25); RemoveBuildingForPlayer(playerid, 1676, 1941.6563, -1778.4531, 14.1406, 0.25); RemoveBuildingForPlayer(playerid, 1676, 1941.6563, -1774.3125, 14.1406, 0.25); RemoveBuildingForPlayer(playerid, 1676, 1941.6563, -1771.3438, 14.1406, 0.25); RemoveBuildingForPlayer(playerid, 1676, 1941.6563, -1767.2891, 14.1406, 0.25); RemoveBuildingForPlayer(playerid, 5410, 2140.5156, -1735.1406, 15.8906, 0.25);
[EDIT]:I even tried deleteing the OnPlayerConnect he already had there but... Thing's didin't go well.

