A few questions. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A few questions. (
/showthread.php?tid=224124)
A few questions. -
Oglevempire - 11.02.2011
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!
Re: A few questions. -
Stigg - 11.02.2011
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...