Help me in Float Checkpoints
#8

this my Script Kidnap
PHP код:
CMD:kidnap(playeridparams[])
{
    new 
targetid;
    if(
sscanf(params,"d",targetid)) return SendClientMessage(playerid0xFF0000FF"USAGE: /kidnap [id]");
    if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid0xFF0000FF"ERROR: You must be on vehicle!");
    if(
noexit[targetid] == 1noexit[targetid] = 0;
    
noexit[targetid] = 1;
    
PutPlayerInVehicle(targetidGetPlayerVehicleID(playerid), 1);
    new 
rand random(sizeof(Kidnapp));
    
SetPlayerPos(playeridKidnapp[rand][0], Kidnapp[rand][1], Kidnapp[rand][2]);
    
SendClientMessage(targetidCOLOR_RED"You Can Out /Cutrope");
    new 
String[128];
    
format(Stringsizeof(String), "You kidnapped %s"pName(targetid));
    
GameTextForPlayer(playeridString50002);
    
//for Victim:
    
format(Stringsizeof(String), "You kidnaped From %s"pName(playerid));
    
GameTextForPlayer(targetidString50002);
    return 
1;

this my checkpoints random float
PHP код:
new Float:Kidnapp[][3] =
{
    {
213.8458,1867.2299,13.1406},
    {
404.7588,2443.3687,16.5000},
    {
760.2078,381.6906,23.1719},
    {-
777.8541,1436.0165,13.7891}
}; 
How i can make my float better to i will add money for kiddnaper and death for kidnapped
PHP код:
SetPlayerHealth(targetid0);
GivePlayerMoney(playerid1000);
DisablePlayerCheckpoint(playerid); 
this i want adding it when player in the random checkpoints
Reply


Messages In This Thread
Help me in Float Checkpoints - by astanalol - 24.04.2015, 12:17
Re: Help me in Float Checkpoints - by BroZeus - 24.04.2015, 12:23
Re: Help me in Float Checkpoints - by astanalol - 24.04.2015, 12:25
Re: Help me in Float Checkpoints - by Alpay0098 - 24.04.2015, 12:32
Re: Help me in Float Checkpoints - by astanalol - 24.04.2015, 13:00
Re: Help me in Float Checkpoints - by Alpay0098 - 24.04.2015, 13:10
Re: Help me in Float Checkpoints - by Alpay0098 - 24.04.2015, 13:13
Re: Help me in Float Checkpoints - by astanalol - 24.04.2015, 13:57
Re: Help me in Float Checkpoints - by Alpay0098 - 24.04.2015, 14:25
Re: Help me in Float Checkpoints - by astanalol - 24.04.2015, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)