11.02.2014, 17:36
Hello SA-MP World!
My name is Ady .
And i've got confused about a function
Let me explain.
A player x is in gang y , when player x got killed by player z which is in gang y . I want to make a dialog to show them
1.Kill member
2.Reset Player Weapons
3.Free [don't make anything]
So i will show you the function
I will hope you to help me !
REGARDS~~
My name is Ady .
And i've got confused about a function
Let me explain.
A player x is in gang y , when player x got killed by player z which is in gang y . I want to make a dialog to show them
1.Kill member
2.Reset Player Weapons
3.Free [don't make anything]
So i will show you the function
pawn Код:
if ( Users[ killerid ][ gang ] == Users[ playerid ][ gang ] )
FormatMSG( playerid, COLOR_ULTRARED, "!! ATENTION !!: %s , killed you and he is with you in gang !", PlayerName( killerid ) );
This is the originally now what's i did
if ( Users[ killerid ][ gang ] == Users[ playerid ][ gang ] )
ShowPlayerDialog(playerid, DIALOG_GANGKILLED, DIALOG_STYLE_LIST, "You've got killed by a gang member", "Kill member\nReset Player Weapons\nFree", "Select", "Leave");
// Now that's my problem, here i'm blocked .
OnDialogResponse(bla bla)
{
case DIALOG_GANGKILLED:
{
switch( listitem )
{
case 0: // here's the problem how i can make to kill the player z who killed player x ? I'm think it's using foreach but i don't know ... please help me ! :)
REGARDS~~