[pawn]new paintballbe;
new paintballki;[/pawn]
[pawn]public OnGameModeInit()
{ // Pickupok
paintballbe = CreatePickup(1318, 1, -320.5020,1802.7192,42.7648, 1); //be
paintballki = CreatePickup(1318, 1, -320.4682,1805.1179,42.5114, 1); // ki
...............................
[/pawn]
[pawn]public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == paintballbe)
{
new ora, perc, masodperc;
GetTime(ora,perc,masodperc);
if(ora > 6 && ora < 12)
SendClientMessage(playerid, COLOR_WHITE, \"Üdvözlünk a Paintball Pályán!\");
SendClientMessage(playerid, COLOR_YELLOW, \"Felszerelésedet felvetted! (Védõfelszerelés, Country Rifle, Hangtompítos 9mm.) \");
SetPlayerPos(playerid, -320.5207,1807.1807,42.4023);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 33, 70); // Country Rifle Hangtompítos 9mm
GivePlayerWeapon(playerid, 23, 100); // Hangtompítos 9mm
SetPlayerArmour(playerid, 1000);
SetPlayerHealth(playerid, 100);
}
if(pickupid == paintballki)
{
SendClientMessage(playerid, COLOR_WHITE, \"Levetted a felszerelésed!\");
SendClientMessage(playerid, COLOR_YELLOW, \"Gyere máskor is! További szép napot! \");
//SendClientMessage(playerid, COLOR_YELLOW, \"Kaptál ajándékba 1-1 festékgolyót emlékül! \");
SetPlayerPos(playerid, -320.2914,1800.1718,42.7813);
SetPlayerInterior(playerid, 0);
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
RemovePlayerWeapon(playerid, 23, 33);
}
return 1;
}[/pawn]
Hiba: error 017: undefined symbol \"GetTime\"
warning 203: symbol is never used: \"masodperc\"
warning 203: symbol is never used: \"perc\"
Nem sikerül. :S