Get save corda
#3

Quote:
Originally Posted by V1ceC1ty
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp(cmdtext, "/plantbomb", true))
  {
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SendClientMessage(playerid, 0xFFFFFFFF, "Bomb Planted.");
 
    // Do other stuff

    CreateExplosion(x, y, z, 12, 10)
  }
  return 0;
}
Read the post maybe?

ONTOPIC:

There isn't a really efficient way of getting random co-ordonates. You would firstly need to find a bunch of then in area's then when a player is close enough (Check using IsPlayerInRangeOfPoint) make it say a message "/disarm to disarm the planted bomb".
Reply


Messages In This Thread
Get save corda - by Steven82 - 24.03.2010, 07:07
Re: Get save corda - by V1ceC1ty - 24.03.2010, 09:02
Re: Get save corda - by [HiC]TheKiller - 24.03.2010, 09:05
Re: Get save corda - by Steven82 - 24.03.2010, 23:21
Re: Get save corda - by adsy - 24.03.2010, 23:45
Re: Get save corda - by Steven82 - 25.03.2010, 01:07
Re: Get save corda - by XGh0stz - 25.03.2010, 02:16
Re: Get save corda - by Steven82 - 25.03.2010, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)