08.06.2010, 21:58
Assim:
Topo GM:
Agora Final GM:
Agora comando para Liberar os "CORRER"
Topo GM:
pawn Код:
new CorreCara[MAX_PLAYERS];
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))//TECLA QUE ATIRA
{
if(CorreCara[playerid] == 1){
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(playerid, X+10, Y, Z);//Sу Ira Aumentar para Lado X
}
}
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/correon", true))
{
CorreCara[playerid] = 1;
return 1;
}
if(!strcmp(cmdtext, "/correoff", true))
{
CorreCara[playerid] = 0;
return 1;
}
return 0;
}