19.07.2011, 11:57
Ok then try this:
In this way you must:
Press LMB to show 1
Press LSHIFT to show 2
Press LALT(Walk key) to show 3
Press TAB to show START
Pressing LMB(which show 1) , LSHIFT(which show 2) , LALT(which show 3) , TAB (which show START) will initiate an easy countdown which you can do everytime without any command
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_FIRE)
{
GameTextForPlayer(playerid,"~r~1",500,5);
}
if(newkeys & KEY_JUMP)
{
GameTextForPlayer(playerid,"~w~2",500,5);
}
if(newkeys & KEY_WALK)
{
GameTextForPlayer(playerid,"~g~3",500,5);
}
if(newkeys & KEY_ACTION)
{
GameTextForPlayer(playerid,"~w~START",500,5);
}
return 1;
}
Press LMB to show 1
Press LSHIFT to show 2
Press LALT(Walk key) to show 3
Press TAB to show START
Pressing LMB(which show 1) , LSHIFT(which show 2) , LALT(which show 3) , TAB (which show START) will initiate an easy countdown which you can do everytime without any command