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
#2

Why don't you just use OnPlayerEnterDynamicCP(playerid, checkpointid)?
Reply
#3

Aight any tut there? or please explain me a little bit with code

Like what should i write after?

PHP код:
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == Bell)
    { 
??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)