A few questions.
#1

Hello, I'm a new modder, just started with it.
I'm currently dealing with the teleports problem and some non-knowledge stuff.
Can you please give me an example for a working + checked teleport.
And second, please, can you explain me how do I create a CMD that heals you for cash somewhere.

Please answer atleast one if you can, thank you .
OgLev out!
Reply
#2

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)