public OnPlayerSpawn(playerid) {
new Temp[3];
getdate(Temp[0], Temp[1], Temp[2]);
if(Informacion[playerid][pVip] >= 1 && Informacion[playerid][pVdia]<=Temp[2] && Informacion[playerid][pVmes]<=Temp[1] && Informacion[playerid][pVyear]<=Temp[0]){
Informacion[playerid][pVip] = 0;
Informacion[playerid][pVdia] = 0;
Informacion[playerid][pVmes] = 0;
Informacion[playerid][pVyear] = 0;
SendClientMessageEx(-1, Rojo, "his VIP account %s[%d] Ended", Nombre(playerid), playerid);
}
switch(Informacion[playerid][pClanMiembro]){
case CLAN_1: SetPlayerColor(playerid, Color_CLAN1);
case CLAN_2: SetPlayerColor(playerid, Color_CLAN2);
case CLAN_3: SetPlayerColor(playerid, Color_CLAN3);
case CLAN_4: SetPlayerColor(playerid, Color_CLAN4);
case CLAN_5: SetPlayerColor(playerid, Color_CLAN5),SetPlayerSkin(playerid,2);
case CLAN_6: SetPlayerColor(playerid, Color_CLAN6);
case CLAN_7: SetPlayerColor(playerid, Color_CLAN7);
case CLAN_8: SetPlayerColor(playerid, Color_CLAN
![Cool](images/smilies/cool.gif)
,SetPlayerSkin(playerid,230);
case CLAN_9: SetPlayerColor(playerid, Color_CLAN9);
case CLAN_10: SetPlayerColor(playerid, Color_CLAN10),SetPlayerSkin(playerid,231);
case CLAN_11: SetPlayerColor(playerid, Color_CLAN11);
case CLAN_12: SetPlayerColor(playerid, Color_CLAN12);
case CLAN_13: SetPlayerColor(playerid, Color_CLAN13);
case CLAN_14: SetPlayerColor(playerid, Color_CLAN14);
case CLAN_15: SetPlayerColor(playerid, Color_CLAN15);
case CLAN_16: SetPlayerColor(playerid, Color_CLAN16),SetPlayerSkin(playerid,285);
case CLAN_17: SetPlayerColor(playerid, Color_CLAN17),SetPlayerSkin(playerid,25
![Cool](images/smilies/cool.gif)
;
case CLAN_18: SetPlayerColor(playerid, Color_CLAN1
![Cool](images/smilies/cool.gif)
;
case CLAN_19: SetPlayerColor(playerid, Color_CLAN19);
case CLAN_20: SetPlayerColor(playerid, Color_CLAN20),SetPlayerSkin(playerid,286);
case CLAN_21: SetPlayerColor(playerid, Color_CLAN21);
case CLAN_22: SetPlayerColor(playerid, Color_CLAN22);
case CLAN_23: SetPlayerColor(playerid, Color_CLAN23);
default: SetPlayerColor(playerid, 0xFFFFFFFF);
}
SetPlayerTeam(playerid,NO_TEAM);
InfoRacePlayer[playerid][Join] = false;
SetPlayerCheckpoint(playerid,InfoRace[0][PR_x],InfoRace[0][PR_y],InfoRace[0][PR_z],0.0);
TieneBazuca[playerid] = false;
ArrowPlayer[playerid] = false;
en_evento[playerid] = 0;
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
//SetTimerEx("AntiSpawnKill", 5000, false, "d", playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 34, 9999);
//GivePlayerWeapon(playerid,16,20);
if(Informacion[playerid][pFrozen] == 1) {
TogglePlayerControllable(playerid,false);
SendClientMessage(playerid,Rojo,"Your still frozen.");
}
if(Informacion[playerid][pJail] == 1) {
SetTimerEx("JailPlayer",3000,0,"d",playerid);
SendClientMessage(playerid,Rojo,"You are still in jail!");
}
if(dini_Int(DataBase(playerid), "SkinID") != 0) {
SetPlayerSkin(playerid, dini_Int(DataBase(playerid), "SkinID"));
}
for(new z=0; z < MAX_CLANS_BASE; z++)
{
GangZoneShowForPlayer(playerid, InfoClan[z][z_id], GetTeamColor(InfoClan[z][z_team]));
if(ZoneTakeOverTeam[z] != -1) GangZoneFlashForPlayer(playerid, InfoClan[z][z_id], GetTeamColor(ZoneTakeOverTeam[z]));
}
switch(Informacion[playerid][pClanMiembro])
{
default: SetPlayerRandomSpawn(playerid);
}
//SetPlayerRandomSpawn(playerid);
new str[32];
format(str, sizeof str, "%s", GetClanTag(Informacion[playerid][pClanMiembro]));
Update3DTextLabelText(LabelClan[playerid], GetTeamColor(Informacion[playerid][pClanMiembro]), str);
Attach3DTextLabelToPlayer(LabelClan[playerid], playerid, 0.0, 0.0, 0.7);
if(!IsPlayerAttachedObjectSlotUsed(playerid,7))
{
//SetPlayerAttachedObject(playerid,7,19065,2,0.15265 6,-0.017154,0.003051,99.488822,79.085777,356.214263,1 .000000,1.000000,1.000000);
}
return 1;
}
Please help me :c