Larsey123IsMe
Unregistered
i = [Lvrcr]Larsey123
him = Mercedes230
When 'i' driveby 'him' then it says that 'him' driveby'ed
[ame="http://www.youtube.com/watch?v=VdcTFhJcQBg"]Video Of Problem[/ame]
pawn Код:
#include <a_samp>
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPlayerState(killerid) == 2)
{
if(!IsPlayerInAnyVehicle(playerid))
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s(%d) do NOT driveby",name ,playerid);
SendClientMessageToAll(0xFFC4E0AA, string);
return 1;
}
}
return 1;
}
Larsey123IsMe
Unregistered
Thanks, That work
and i got an other question: My mute is bugged - It mute me instead of the player i clicked on =/
pawn Код:
new Mute[MAX_PLAYERS];
forward Unmute(playerid);
pawn Код:
else if(dialogid == 16)
{
if(response)
{
new playerwhogotmuted[MAX_PLAYER_NAME], string[128];
GetPlayerName(adminPlayer[playerid], playerwhogotmuted, sizeof(playerwhogotmuted));
format(string, sizeof(string), "**(ADMIN MUTE)** %s(%d) %s",playerwhogotmuted, playerid, inputtext);
SendClientMessageToAll(COLOR_ADMINORANGE, string);
adminPlayer[playerid] = 0;
//Mute
Mute[adminPlayer[playerid]] = 1;
adminPlayer[playerid] = 0;
//Timer
SetTimer("Unmute",120000 ,false);
} else return SendClientMessage(playerid, COLOR_ADMINRED, "Error: You have cancelled the Mute Menu.");
}
pawn Код:
public Unmute(playerid)
{
new playerwhogotmuted[MAX_PLAYER_NAME], string[128];
GetPlayerName(adminPlayer[playerid], playerwhogotmuted, sizeof(playerwhogotmuted));
format(string, sizeof(string), "**(ADMIN UNMUTE)** %s(%d), Read /rules /pc /commands",playerwhogotmuted, playerid);
SendClientMessageToAll(COLOR_ADMINORANGE, string);
Mute[adminPlayer[playerid]] = 0;
adminPlayer[playerid] = 0;
}
pawn Код:
public OnPlayerText(playerid, text[])
{
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, COLOR_ADMINMUTE, "You Are Muted. You Cannot Chat");
return 0;
}
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
Mute[playerid] = 0;
return 1;
}
Posts: 1,466
Threads: 7
Joined: Jun 2009
Reputation:
0
No offense Larsey, you're just calling everyone to help if something doesn't work.
Try fixing it yourself first and learn from your mistakes.
Larsey123IsMe
Unregistered
Quote:
Originally Posted by Retardedwolf
No offense Larsey, you're just calling everyone to help if something doesn't work.
Try fixing it yourself first and learn from your mistakes.
|
Ye Ye i know im always calling for help
Sorry about that, but i never get it to work
After i have tried for like 2-3 to get it to work.. then ill ask, i have searched evrywhere but dont find anytihin