Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

CMD /respawncars with radius but I want respawn all cars

$
0
0
PHP Code:

CMD:respawncars(playeridparams[])
{
    if (
PlayerInfo[playerid][pAdmin] >= 3)
    {
        new 
string[128], radius;
        if(
sscanf(params"d"radius)) return SendClientMessageEx(playeridCOLOR_GREY"USAGE: /respawncars [radius]");

        if(
radius || radius 40)
        {
            
SendClientMessageEx(playeridCOLOR_WHITE"Radius must be higher than 0 and lower than 41!");
            return 
1;
        }
        
RespawnNearbyVehicles(playeridradius);
        
format(stringsizeof(string), "You have respawned all vehicles within a radius of %d."radius);
        
SendClientMessageEx(playeridCOLOR_GREYstring);
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"You are not authorized to use that command.");
    }
    return 
1;


This is respawncars with a radius of 1-40.
I want a cmd respawnallcars.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>