1
mIRC/pawn Scripting / Want add Timer in Commands
« on: January 27, 2012, 04:52:35 pm »
Hello all.
i have just started a scripting
so need somw help
i Want to add TIMER and FREEZE for commands !heal and for all teleport commands like !fight etc
i m adding a command here so u all see and change it
[pawn]
-------GOTO FIGHT AREA--------
else if ( strcmp( cmd, "!fight", true ) == 0 )
{
SetPlayerPos(playerid,-974.17083,-839.76446,13.16437);
ResetPlayerWeapons(playerid),
SetPlayerWeapon(playerid, 20, 99999 );
format(szMsg, 128, "%s gone to ArenaSpaz.",gPlayers[playerid]);
SendClientMessageToAll( BLUE, szMsg );
return 1;
}
-------HEAL--------
{
tmp = strtok(cmdtext, idx);
SetPlayerHealth(playerid,100);
SendClientMessage(playerid,0xAAAAAA,"Congrats you have 100% healed");
return 1;
}
[/pawn]
i have just started a scripting
so need somw help
i Want to add TIMER and FREEZE for commands !heal and for all teleport commands like !fight etc
i m adding a command here so u all see and change it
[pawn]
-------GOTO FIGHT AREA--------
else if ( strcmp( cmd, "!fight", true ) == 0 )
{
SetPlayerPos(playerid,-974.17083,-839.76446,13.16437);
ResetPlayerWeapons(playerid),
SetPlayerWeapon(playerid, 20, 99999 );
format(szMsg, 128, "%s gone to ArenaSpaz.",gPlayers[playerid]);
SendClientMessageToAll( BLUE, szMsg );
return 1;
}
-------HEAL--------
{
tmp = strtok(cmdtext, idx);
SetPlayerHealth(playerid,100);
SendClientMessage(playerid,0xAAAAAA,"Congrats you have 100% healed");
return 1;
}
[/pawn]