02.02.2012, 13:38
pronto fiz aki e so vc organizar tudo ae
qualquer warning desculpe-me pois fiz com pressa
Ajudei? clica em ajudei ae
qualquer warning desculpe-me pois fiz com pressa
pawn Код:
//inicio GM
forward Transformacao(playerid);
new TempoTransformacao;
new Transformo[MAX_PLAYERS];
new SkinTrans[MAX_PLAYERS];
//----------------------------//
public GameModeInitExitFunc()
{
KillTimer(Transformacao);
KIllTimer(TempoTransformacao);
return 1;
}
//-------------------------------------------------------------//
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(Transformacao);
KIllTimer(TempoTransformacao);
return 1;
}
//-------------------------------------------------------------//
if(strcmp("/trans", cmdtext, true, 10) == 0)
{
if(Transformo[playerid] == 1)
{
SendClientMessage(playerid, -1, "Espere 60 segundos para usar este comando novamente.");
return 1;
}
SendClientMessage(playerid, -1,"Vocк esta transformado");
GetPlayerWeapon(playerid);
SkinTrans[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid,5);
GivePlayerWeapon(playerid,38,9999);
Transformo[playerid] = 1;
TempoTransformacao = SetTimer("Transformacao", 30000, 1);
return 1;
}
//-------------------------------------------------------------//
public Transformacao(playerid)
{
new SkinTrans[MAX_PLAYERS];
if(IsPlayerConnected(playerid))
{
Transformo[playerid] = 0;
SetPlayerSkin(playerid,SkinTrans[playerid]);
return 1;
}
return 1;
}
