11.02.2011, 05:49
Heal Player.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/heal", cmdtext, true))//healing player for $200 bucks
{
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -200);
return 1;
}
return 0;
}
A working tele to Mount Chilliad.
SetPlayerPos(playerid, -2238.0281,-1712.7245,480.8676);
SetPlayerFacingAngle(playerid,28.2521);
SetCameraBehindPlayer(playerid);
GameTextForPlayer(playerid,"~r~Welcome to~w~~n~mount chilliad",5000,3);
Peace...
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/heal", cmdtext, true))//healing player for $200 bucks
{
SetPlayerHealth(playerid, 100);
GivePlayerMoney(playerid, -200);
return 1;
}
return 0;
}
A working tele to Mount Chilliad.
SetPlayerPos(playerid, -2238.0281,-1712.7245,480.8676);
SetPlayerFacingAngle(playerid,28.2521);
SetCameraBehindPlayer(playerid);
GameTextForPlayer(playerid,"~r~Welcome to~w~~n~mount chilliad",5000,3);
Peace...