Textdraw
#1

Hi buddies, I want if a player go to red checkpoint so player gets textdraw.

PHP код:
if(strcmp(cmd"1"true) == 0)
    {
        if(
IsPlayerInDynamicCP(playeridpizzarob))
        {
            new 
money;
            
money GetPlayerMoney(playerid);
            new 
Float:health;
            
GivePlayerHealth(playerid,health);
            if(
money <= 1)
            {
            
SendClientMessage(playeridROJOO,"You don't have enough money.");
            }
            if(
money >= 1)
            {
            
GivePlayerHealth(playerid5.0);
            
GivePlayerMoneyEx(playerid, -1);
            
SendClientMessage(playeridVERDE,"You have purchased an Ice Cream for $1.");
            }
            if(
health == 100.0)
            {
            
SendClientMessage(playeridROJOO,"You have full health already.");
            } 
I think, it's wrong. tell me what should i have to write here in this code?

PHP код:
if(IsPlayerInDynamicCP(playeridpizzarob))
        { 
Reply


Messages In This Thread
Textdraw - by sscarface - 30.05.2015, 15:26
Re: Textdraw - by J0sh... - 30.05.2015, 16:17
Re: Textdraw - by sscarface - 30.05.2015, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)