10.09.2010, 22:57
(
Последний раз редактировалось gamer931215; 10.09.2010 в 23:19.
Причина: Im just too 1337 to tell you that :O
)
Well first dont use OnPlayerUpdate for those coordinates, this will provide too much lag (try to make a timer or something ?)
And second,
You dont have to put tags for every menu item, this is also good/cleaner:
And third, check your code:
That is the for each checkpoint and its location the script, so change that to this:
And for the autotune check out AddVehicleComponent at the wiki.
And second,
You dont have to put tags for every menu item, this is also good/cleaner:
pawn Код:
"Weapons Menu\nShawn-Off\nTec9\nArmor\nSniper"
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.5, 1929.91796875, -1776.3956298828, 12.467615127563)) //if player is near that location
{
SetPlayerPos(playerid, 2543.462646,-1308.379882,1026.728393); //teleport player
SetPlayerInterior(playerid, 2); //set interrior
SendClientMessage(playerid, 0x00FF00, "Welcome In The Building."); //Send message
}
pawn Код:
//IsPLayerInRangeOfPoint etc (same)
if(IsPlayerInRangeOfPoint(playerid, 2.5, 1929.91796875, -1776.3956298828, 12.467615127563)) //if player is near that location
{
GivePlayerWeapon(playerid,38,500); //gives player minigun xD with 500 bullets
}