Need help with /detain command
#6

pawn Код:
if (!strcmp(cmd, "/pullincar", true))
{
    if(IsACop(playerid) || IsAFreecop(playerid))
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /pullincar [player id] [seatid]");
        new person = strval(tmp);
        if(person < 0 || person >= MAX_PLAYERS) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /pullincar [player id] [seatid]");
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /pullincar [player id] [seatid]");
        new seat = strval(tmp), Float:pos[3];
        GetPlayerPos(person, pos[0], pos[1], pos[2]);
        PutPlayerInVehicle(person, GetPlayerVehicleID(playerid), seat);
    }
    return 1;
}
Reply


Messages In This Thread
Need help with /detain command - by Rocky2k12 - 27.03.2013, 00:57
Re: Need help with /detain command - by Rocky2k12 - 27.03.2013, 01:46
Re: Need help with /detain command - by Kar - 27.03.2013, 05:38
Re: Need help with /detain command - by Rocky2k12 - 27.03.2013, 11:38
Re: Need help with /detain command - by Rocky2k12 - 29.03.2013, 20:09
Re: Need help with /detain command - by Nivniv2 - 29.03.2013, 21:20

Forum Jump:


Users browsing this thread: 2 Guest(s)