02.09.2013, 05:35
You can return only 1 var, but can do more actions. Solution is
pawn Код:
case 0:
{
if(GetPlayerMoney(playerid) < 1000)
{
SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash for the Skydive.");
SetPlayerPos(playerid,1675.6082,-2324.6172,20.5469);
SetPlayerInterior(playerid,0);
return 0;
}
GivePlayerMoney(playerid, -1000);
SetPlayerPos(playerid,0,0,1000);
SetPlayerInterior(playerid,0);
GivePlayerWeapon(playerid, 46, 1);
}