Jump to content

Question

Posted

nu stiu ce are de nu pune checkpoint pe mapa

  • Codul sursa:
  • CMD:getgift(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi mai intai.");
    	if(IsPlayerConnected(playerid))
     	{
    	    if(PlayerToPoint(5.0, playerid, 861.5489,-1663.8907,13.5469))
    	    {
    		    if(PlayerInfo[playerid][pLevel] < 1) return SendClientMessage(playerid, COLOR_DS, "Nu ai level 1");
    		    {
    			    SelectTextDraw(playerid, 0x478fcaFF);
    			    TogglePlayerControllable(playerid, 0);
    				PlayerTextDrawShow(playerid, GetGift[playerid]);
    				PlayerTextDrawShow(playerid, GetGift1[playerid]);
    				PlayerTextDrawShow(playerid, GetGift2[playerid]);
    				PlayerTextDrawShow(playerid, GetGift3[playerid]);
    				PlayerTextDrawShow(playerid, GetGift4[playerid]);
    				PlayerTextDrawShow(playerid, GetGift5[playerid]);
    				PlayerTextDrawShow(playerid, GetGift6[playerid]);
    				PlayerTextDrawShow(playerid, GetGift7[playerid]);
    				PlayerTextDrawShow(playerid, GetGift8[playerid]);
    				PlayerTextDrawShow(playerid, GetGift9[playerid]);
    				new gString[800];
    				format(gString, sizeof(gString), "~r~%d ~w~Puncte Gift",PlayerInfo[playerid][pGift]);
    				PlayerTextDrawSetString(playerid, GetGift9[playerid], gString);
    				PlayerTextDrawShow(playerid, GetGift9[playerid]);
    	   		}
    	   	}
    	   	else return SendClientMessage(playerid, COLOR_LIGHTRED, "{0077ED}Server: {FFFFFF}Nu esti langa giftbox. Un checkpoint ti-a fost pus pe harta!.");
            DisablePlayerCheckpoint(playerid);
            CP[playerid] = 43;
    		SetPlayerCheckpoint(playerid,861.5489,-1663.8907,13.5469, 3.0);
    	}
    	return 1;
    }

1 answer to this question

Recommended Posts

  • 0
Posted

Nu se pune asa returnul

Ci asa

else 
{
SendClientMessage(playerid, COLOR_LIGHTRED, "{0077ED}Server: {FFFFFF}Nu esti langa giftbox. Un checkpoint ti-a fost pus pe harta!.");
        DisablePlayerCheckpoint(playerid);
        CP[playerid] = 43;
		SetPlayerCheckpoint(playerid,861.5489,-1663.8907,13.5469, 3.0);
return1;
} 

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.