DELETE PLEASE
#1

DELETE PLEASE
Reply
#2

Why do you start two topics for the same scripts
Reply
#3

Its a different one,
Ones a filterscript,
Anothers my gamemode,
And it has different code,
And different problems,
So technically this topic is made for this line:

pawn Код:
else if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
But you need to see this bit:

pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
else if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
else if(GetPlayerTeam(playerid) == 1) return SendClientMessage(playerid, COLOR_RED, "You're not a cop")
else
{
I dont know how to space them into 2 sections otherwise i get errors, So i need a fix
Reply
#4

pawn Код:
if(IsACopCar(vehicleid)) return SendClientMessage(playerid, COLOR_RED, "You need to be in a cop car");
Reply
#5

Conflicts with:
pawn Код:
if(sscanf(params, "s", message))
        {
            SendClientMessage(playerid, COLOR_RED, "Usage: /megaphone [message]");
        }
Reply
#6

It's time to realy learn pawn language.

dcmd_megaphone(playerid, params[])
{
new
string[128],
pName[MAX_PLAYER_NAME];

if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/megaphone [message]");
GetPlayerName(playerid, pName, sizeof pName);
format(string, sizeof string, ">>Megaphone [Officer %s]: >>%s!!!", pName);
SendClientMessageToAll(COLOR, string);
return 1;
}

You can edit the rest by urself.
Reply
#7

Quote:
Originally Posted by » RэРиR «
It's time to realy learn pawn language.

dcmd_megaphone(playerid, params[])
{
new
string[128],
pName[MAX_PLAYER_NAME];

if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/megaphone [message]");
GetPlayerName(playerid, pName, sizeof pName);
format(string, sizeof string, ">>Megaphone [Officer %s]: >>%s!!!", pName);
SendClientMessageToAll(COLOR, string);
return 1;
}

You can edit the rest by urself.
I belive im already using a code you gave me,
Ive just need to know what code to use,
When adding so only Team 1 can use it, And u gotta be in a copcar to use it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)