Convert To ZCMD
#1

pawn Код:
if(!strcmp(cmd, "/respawncars", true) ){

    if (PlayerInfo[playerid][pAdmin] >= 1){

    for(new v = 1; v <= APPROX_VEHICLES; v++){
    if(IsVehicleEmpty(v)){
        SetVehicleToRespawn(v);
    }}

    SendClientMessageToAll("(INFO) All uncommissionned server vehicles respawned.");
    }
    }
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=91354

Do it like in the example.
Reply
#3

Sorry but i cant do it like that as its a lil hard for me
Reply
#4

pawn Код:
CMD:respawncars(playerid,params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1){

    for(new v = 1; v <= APPROX_VEHICLES; v++){
    if(IsVehicleEmpty(v)){
        SetVehicleToRespawn(v);
    }}

    SendClientMessageToAll(-1,"(INFO) All uncommissionned server vehicles respawned.");
    }
    return 1;
}
Reply
#5

CSSI Is it possible where you can make a cmd just like that where it respawns all cars but it doesnt respawn when your in the vehicle
Reply
#6

pawn Код:
CMD:respawn(playerid,params[])
{
    for(new v = 0 ; v < APPROX_VEHICLES; v++)
    {
        if(GetPlayerVehicleID(playerid) != v)
        {
            SetVehicleToRespawn(v);
        }
    }
    return 1;
}
Reply
#7

Do i add any forwards or public
Reply
#8

No .
Reply
#9

C:\Users\User\Desktop\RLRP\gamemodes\customscript. pwn(32481) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\RLRP\gamemodes\customscript. pwn(58704) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#10

Quote:
Originally Posted by Mr.McGuire
Посмотреть сообщение
C:\Users\User\Desktop\RLRP\gamemodes\customscript. pwn(32481) : warning 202: number of arguments does not match definition
C:\Users\User\Desktop\RLRP\gamemodes\customscript. pwn(58704) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Post these lines.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)