Hallo Community,
kurz und bündig,
ocmd:pbenter(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,2.0,1421.74, -1179.36, 25.32))
{
Spieler[playerid][Paintball] = 1;
SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
SetPlayerInterior(playerid,10);
if(GetPlayerMoney(playerid)>3000)
{
PayPlayerMoney(playerid, -3000);
return 1;
}
else
{
SendClientMessage(playerid,HELLROT,"Dein Geld reicht nicht aus. Du brauchst mind. 3000§");
return 1;
}
SendClientMessage(playerid,BAIGE,"Du hast die Paintball Arena betreten. [-3000$]");
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,24,500);
return 1;
}
else
{
SendClientMessage(playerid,GELB,"Du bist nicht an der Paintball Arena!");
return 1;
}
}
Bekomme aber diesen Warning:
C:\Dokumente und Einstellungen\Bärtle\Desktop\German Deathmatch\gamemodes\Deathmatch.pwn(18) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.