05.06.2016, 02:00
PHP код:
public OnPlayerConnect(playerid)
{
Intro[0] = TextDrawCreate(85.999763, 121.306808, ".");
TextDrawLetterSize(Intro[0], 2.703198, 31.384540);
TextDrawTextSize(Intro[0], 562.000000, 10.199999);
TextDrawAlignment(Intro[0], 1);
TextDrawColor(Intro[0], 0x00000030);
TextDrawUseBox(Intro[0], 1);
TextDrawBoxColor(Intro[0], 0x00000030);
TextDrawSetShadow(Intro[0], 0);
TextDrawSetOutline(Intro[0], 0);
TextDrawBackgroundColor(Intro[0], 0x00000030);
TextDrawFont(Intro[0], 2);
TextDrawSetProportional(Intro[0], 0);
TextDrawSetShadow(Intro[0], 0);
TextDrawSetSelectable(Intro[0], true);
Intro[1] = TextDrawCreate(234.000106, 121.306610, "Chase's");
TextDrawLetterSize(Intro[1], 1.074401, 4.945065);
TextDrawAlignment(Intro[1], 1);
TextDrawColor(Intro[1], 1543462911);
TextDrawSetShadow(Intro[1], 0);
TextDrawSetOutline(Intro[1], 0);
TextDrawBackgroundColor(Intro[1], 255);
TextDrawFont(Intro[1], 2);
TextDrawSetProportional(Intro[1], 1);
TextDrawSetShadow(Intro[1], 0);
Intro[2] = TextDrawCreate(226.800003, 155.653274, "----------------------------------");
TextDrawLetterSize(Intro[2], 0.400000, 1.600000);
TextDrawAlignment(Intro[2], 1);
TextDrawColor(Intro[2], 16711935);
TextDrawSetShadow(Intro[2], 0);
TextDrawSetOutline(Intro[2], 0);
TextDrawBackgroundColor(Intro[2], 255);
TextDrawFont(Intro[2], 1);
TextDrawSetProportional(Intro[2], 1);
TextDrawSetShadow(Intro[2], 0);
Intro[3] = TextDrawCreate(234.800018, 166.853317, "COPS");
TextDrawLetterSize(Intro[3], 0.693599, 2.518401);
TextDrawAlignment(Intro[3], 1);
TextDrawColor(Intro[3], 65535);
TextDrawSetShadow(Intro[3], 0);
TextDrawSetOutline(Intro[3], 0);
TextDrawBackgroundColor(Intro[3], 255);
TextDrawFont(Intro[3], 3);
TextDrawSetProportional(Intro[3], 1);
TextDrawSetShadow(Intro[3], 0);
Intro[4] = TextDrawCreate(297.200164, 164.613250, "&");
TextDrawLetterSize(Intro[4], 0.744800, 2.914131);
TextDrawAlignment(Intro[4], 1);
TextDrawColor(Intro[4], -5963521);
TextDrawSetShadow(Intro[4], 0);
TextDrawSetOutline(Intro[4], 0);
TextDrawBackgroundColor(Intro[4], 255);
TextDrawFont(Intro[4], 2);
TextDrawSetProportional(Intro[4], 1);
TextDrawSetShadow(Intro[4], 0);
Intro[5] = TextDrawCreate(329.200073, 167.600051, "ROBBERS");
TextDrawLetterSize(Intro[5], 0.636800, 2.406399);
TextDrawAlignment(Intro[5], 1);
TextDrawColor(Intro[5], -469756929);
TextDrawSetShadow(Intro[5], 0);
TextDrawSetOutline(Intro[5], 0);
TextDrawBackgroundColor(Intro[5], 255);
TextDrawFont(Intro[5], 3);
TextDrawSetProportional(Intro[5], 1);
TextDrawSetShadow(Intro[5], 0);
Intro[6] = TextDrawCreate(206.799957, 380.400024, "www.cnrgamers.com");
TextDrawLetterSize(Intro[6], 0.502400, 2.040533);
TextDrawAlignment(Intro[6], 1);
TextDrawColor(Intro[6], 16711935);
TextDrawSetShadow(Intro[6], 3);
TextDrawSetOutline(Intro[6], 1);
TextDrawBackgroundColor(Intro[6], 41215);
TextDrawFont(Intro[6], 2);
TextDrawSetProportional(Intro[6], 1);
TextDrawSetShadow(Intro[6], 3);
Intro[7] = TextDrawCreate(226.800003, 187.759948, "Welcome, Thanks For Visiting");
TextDrawLetterSize(Intro[7], 0.400000, 1.600000);
TextDrawAlignment(Intro[7], 1);
TextDrawColor(Intro[7], -1391401217);
TextDrawSetShadow(Intro[7], 0);
TextDrawSetOutline(Intro[7], 0);
TextDrawBackgroundColor(Intro[7], 255);
TextDrawFont(Intro[7], 1);
TextDrawSetProportional(Intro[7], 1);
TextDrawSetShadow(Intro[7], 0);
Intro[8] = TextDrawCreate(233.200057, 215.386642, "- Always Follow The /rules");
TextDrawLetterSize(Intro[8], 0.400000, 1.600000);
TextDrawAlignment(Intro[8], 1);
TextDrawColor(Intro[8], -1378294017);
TextDrawSetShadow(Intro[8], 0);
TextDrawSetOutline(Intro[8], 0);
TextDrawBackgroundColor(Intro[8], 255);
TextDrawFont(Intro[8], 1);
TextDrawSetProportional(Intro[8], 1);
TextDrawSetShadow(Intro[8], 0);
Intro[9] = TextDrawCreate(197.099884, 237.079925, "- Use /cmds For A List Of Commands");
TextDrawLetterSize(Intro[9], 0.400000, 1.600000);
TextDrawAlignment(Intro[9], 1);
TextDrawColor(Intro[9], -1378294017);
TextDrawSetShadow(Intro[9], 0);
TextDrawSetOutline(Intro[9], 0);
TextDrawBackgroundColor(Intro[9], 255);
TextDrawFont(Intro[9], 1);
TextDrawSetProportional(Intro[9], 1);
TextDrawSetShadow(Intro[9], 0);
Intro[10] = TextDrawCreate(208.699737, 258.900115, "- Repsect Others Including Admins");
TextDrawLetterSize(Intro[10], 0.400000, 1.600000);
TextDrawAlignment(Intro[10], 1);
TextDrawColor(Intro[10], -1378294017);
TextDrawSetShadow(Intro[10], 0);
TextDrawSetOutline(Intro[10], 0);
TextDrawBackgroundColor(Intro[10], 255);
TextDrawFont(Intro[10], 1);
TextDrawSetProportional(Intro[10], 1);
TextDrawSetShadow(Intro[10], 0);
Intro[11] = TextDrawCreate(207.099960, 280.346801, "- No Random Killing [Kick or Ban]");
TextDrawLetterSize(Intro[11], 0.400000, 1.600000);
TextDrawAlignment(Intro[11], 1);
TextDrawColor(Intro[11], -1378294017);
TextDrawSetShadow(Intro[11], 0);
TextDrawSetOutline(Intro[11], 0);
TextDrawBackgroundColor(Intro[11], 255);
TextDrawFont(Intro[11], 1);
TextDrawSetProportional(Intro[11], 1);
TextDrawSetShadow(Intro[11], 0);
Intro[12] = TextDrawCreate(175.800018, 303.593414, "- Cheating Will Not Be Tolerated Here [Ban]");
TextDrawLetterSize(Intro[12], 0.400000, 1.600000);
TextDrawAlignment(Intro[12], 1);
TextDrawColor(Intro[12], -1378294017);
TextDrawSetShadow(Intro[12], 0);
TextDrawSetOutline(Intro[12], 0);
TextDrawBackgroundColor(Intro[12], 255);
TextDrawFont(Intro[12], 1);
TextDrawSetProportional(Intro[12], 1);
TextDrawSetShadow(Intro[12], 0);
Intro[13] = TextDrawCreate(169.199951, 325.893249, "- YOU MUST /REGISTER DONT FORGET TO /LOGIN");
TextDrawLetterSize(Intro[13], 0.400000, 1.600000);
TextDrawAlignment(Intro[13], 1);
TextDrawColor(Intro[13], 1543412911);
TextDrawSetShadow(Intro[13], 0);
TextDrawSetOutline(Intro[13], 0);
TextDrawBackgroundColor(Intro[13], 255);
TextDrawFont(Intro[13], 1);
TextDrawSetProportional(Intro[13], 1);
TextDrawSetShadow(Intro[13], 0);
Intro[14] = TextDrawCreate(117.199981, 362.480041, "CLEO ELS LIGHTS AND CAR MODS WELCOME HERE. NOTHING ELSE");
TextDrawLetterSize(Intro[14], 0.400000, 1.600000);
TextDrawAlignment(Intro[14], 1);
TextDrawColor(Intro[14], -65281);
TextDrawSetShadow(Intro[14], 0);
TextDrawSetOutline(Intro[14], 0);
TextDrawBackgroundColor(Intro[14], 255);
TextDrawFont(Intro[14], 1);
TextDrawSetProportional(Intro[14], 1);
TextDrawSetShadow(Intro[14], 0);
TextDrawShowForPlayer(playerid,Intro[0]);
TextDrawShowForPlayer(playerid,Intro[1]);
TextDrawShowForPlayer(playerid,Intro[2]);
TextDrawShowForPlayer(playerid,Intro[3]);
TextDrawShowForPlayer(playerid,Intro[4]);
TextDrawShowForPlayer(playerid,Intro[5]);
TextDrawShowForPlayer(playerid,Intro[6]);
TextDrawShowForPlayer(playerid,Intro[7]);
TextDrawShowForPlayer(playerid,Intro[8]);
TextDrawShowForPlayer(playerid,Intro[9]);
TextDrawShowForPlayer(playerid,Intro[10]);
TextDrawShowForPlayer(playerid,Intro[11]);
TextDrawShowForPlayer(playerid,Intro[12]);
TextDrawShowForPlayer(playerid,Intro[13]);
TextDrawShowForPlayer(playerid,Intro[14]);
TextDrawShowForPlayer(playerid,Version[0]);
//end of intro textdraw
//Version Textdraw
Version[0] = TextDrawCreate(586.666442, 0.222185, "Ver. [0.5A]");
TextDrawLetterSize(Version[0], 0.257777, 1.190371);
TextDrawAlignment(Version[0], 1);
TextDrawColor(Version[0], 3975935);
TextDrawSetShadow(Version[0], 0);
TextDrawSetOutline(Version[0], 0);
TextDrawBackgroundColor(Version[0], 255);
TextDrawFont(Version[0], 1);
TextDrawSetProportional(Version[0], 1);
TextDrawSetShadow(Version[0], 0);
TextDrawSetSelectable(Version[0], true);
//End Of Version Textdraw
//Intro Textdraw Timer
{
SetTimerEx("TextDrawTimer", 50000, false, "i", playerid);
}
forward TextDrawTimer(playerid);
public TextDrawTimer(playerid)
TextDrawHideForPlayer(playerid,Intro[0]);
TextDrawHideForPlayer(playerid,Intro[1]);
TextDrawHideForPlayer(playerid,Intro[2]);
TextDrawHideForPlayer(playerid,Intro[3]);
TextDrawHideForPlayer(playerid,Intro[4]);
TextDrawHideForPlayer(playerid,Intro[5]);
TextDrawHideForPlayer(playerid,Intro[6]);
TextDrawHideForPlayer(playerid,Intro[7]);
TextDrawHideForPlayer(playerid,Intro[8]);
TextDrawHideForPlayer(playerid,Intro[9]);
TextDrawHideForPlayer(playerid,Intro[10]);
TextDrawHideForPlayer(playerid,Intro[11]);
TextDrawHideForPlayer(playerid,Intro[12]);
TextDrawHideForPlayer(playerid,Intro[13]);
TextDrawHideForPlayer(playerid,Intro[14]);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
ClearAnimations(playerid); //to stop the animation
return 1;
}
C:\Users\Chase Steinhauser\Desktop\Chases CnR\gamemodes\ChasesCnR.pwn(291) : warning 217: loose indentation
C:\Users\Chase Steinhauser\Desktop\Chases CnR\gamemodes\ChasesCnR.pwn(291) : error 029: invalid expression, assumed zero
C:\Users\Chase Steinhauser\Desktop\Chases CnR\gamemodes\ChasesCnR.pwn(291) : error 017: undefined symbol "TextDrawTimer"
C:\Users\Chase Steinhauser\Desktop\Chases CnR\gamemodes\ChasesCnR.pwn(292) : error 029: invalid expression, assumed zero
C:\Users\Chase Steinhauser\Desktop\Chases CnR\gamemodes\ChasesCnR.pwn(292) : error 017: undefined symbol "TextDrawTimer"
C:\Users\Chase Steinhauser\Desktop\Chases CnR\gamemodes\ChasesCnR.pwn(294) : error 001: expected token: ";", but found "-identifier-"