30.05.2015, 15:26
Hi buddies, I want if a player go to red checkpoint so player gets textdraw.
I think, it's wrong. tell me what should i have to write here in this code?
PHP код:
if(strcmp(cmd, "1", true) == 0)
{
if(IsPlayerInDynamicCP(playerid, pizzarob))
{
new money;
money = GetPlayerMoney(playerid);
new Float:health;
GivePlayerHealth(playerid,health);
if(money <= 1)
{
SendClientMessage(playerid, ROJOO,"You don't have enough money.");
}
if(money >= 1)
{
GivePlayerHealth(playerid, 5.0);
GivePlayerMoneyEx(playerid, -1);
SendClientMessage(playerid, VERDE,"You have purchased an Ice Cream for $1.");
}
if(health == 100.0)
{
SendClientMessage(playerid, ROJOO,"You have full health already.");
}
PHP код:
if(IsPlayerInDynamicCP(playerid, pizzarob))
{