07.06.2011, 14:33
is it possible to return a command under OnPlayerDeath. I use zcmd.
cmd_yourcommand(playerid, params)
if(escaper[playerid] == 1)
{
MoveDynamicObject(gate, 1584.7552490234, -1638.1544189453, 12.365068435669, 2);
escaper[playerid] = 0;
cmd_leave(playerid, params);
foreach (Player, i)
{
if(pursuer[i] == 1)
{
GivePlayerMoney(i, 500);
SendClientMessage(i, COLOR_GREEN, "$500 bonus money");
cmd_leave(i, params);
}
}
}
C:\Users\Alex\Desktop\ds\Samp Servers\gamemodes\test.pwn(2590) : error 017: undefined symbol "params"
C:\Users\Alex\Desktop\ds\Samp Servers\gamemodes\test.pwn(2597) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
I know what it is your trying to do! and its Something i was looking for for AGES... i will look into it. but the thing you did wrong ^^ was your closing and open brackets and u didnt define params in the public
|
cmd_leave(playerid, "blabla");
cmd_leave(playerid, "something");
cmd_leave(i, "");