how can i do that when i die it's write me "You will spawn in 2 seconds" for exmple and the 2 will change to 1 and 0 and then i will spawn?
Search for "DeathCam" or something ...
ok i download it i try to copy it to my mode but in my publics i have return 1; but in the script for exmple the public OnPlayerConnect:
Код:
public OnPlayerConnect(playerid)
{
TimeText[playerid] = TextDrawCreate(279.000000,122.000000,"Respawn in: 6.0");
TextDrawUseBox(TimeText[playerid],1);
TextDrawBoxColor(TimeText[playerid],0x00000033);
TextDrawTextSize(TimeText[playerid],364.000000,0.000000);
TextDrawAlignment(TimeText[playerid],0);
TextDrawBackgroundColor(TimeText[playerid],0x000000ff);
TextDrawFont(TimeText[playerid],1);
TextDrawLetterSize(TimeText[playerid],0.299999,1.100000);
TextDrawColor(TimeText[playerid],0xffffffff);
TextDrawSetOutline(TimeText[playerid],1);
TextDrawSetProportional(TimeText[playerid],1);
TextDrawSetShadow(TimeText[playerid],1);
}
Код:
public OnPlayerConnect(playerid)
{
InMission[playerid] = 0;
TextDrawShowForPlayer(playerid,TextTitle);
SetPlayerMapIcon( playerid, 1,-685.3995,2321.1079,131.9607, 19 , 0 );//jump
SetPlayerMapIcon( playerid, 2, 2060.1538,843.2974,6.7031, 53, 0 );//race
SetPlayerMapIcon( playerid, 3,1700.0273,1606.3268,10.5672, 5 , 0 );//ap
SetPlayerMapIcon( playerid, 4,2244.0945,2451.7346,10.8203, 30 , 0 );//police
TimeText[playerid] = TextDrawCreate(279.000000,122.000000,"Respawn in: 6.0");
TextDrawUseBox(TimeText[playerid],1);
TextDrawBoxColor(TimeText[playerid],0x00000033);
TextDrawTextSize(TimeText[playerid],364.000000,0.000000);
TextDrawAlignment(TimeText[playerid],0);
TextDrawBackgroundColor(TimeText[playerid],0x000000ff);
TextDrawFont(TimeText[playerid],1);
TextDrawLetterSize(TimeText[playerid],0.299999,1.100000);
TextDrawColor(TimeText[playerid],0xffffffff);
TextDrawSetOutline(TimeText[playerid],1);
TextDrawSetProportional(TimeText[playerid],1);
TextDrawSetShadow(TimeText[playerid],1);
//----------------------------------------------------------------//
SetTimerEx("AfterPlayerConnect", 1000, 0, "i", playerid);
KS[playerid] = 0;
KSills[playerid] = 0;
if(!dini_Exists(GetPlayerFile(playerid))) {
new str[256];
format(str, sizeof(str), "~w~Welcome ~r~%s ~g~Please ~r~Register ~g~To ~w~Server", GetName(playerid));
GameTextForPlayer(playerid,str,10000,3);
format(str, sizeof(str), "%s please /Register [PassWord] <> ",GetName(playerid));
SendClientMessage(playerid, COLOR_BRIGHTRED, str);
SendClientMessage(playerid, 0x2986CEFF,"/Help мтжшд тм доег");
} else {
new str[256];
format(str, sizeof(str), "~w~Welcome ~g~Back ~r~%s", GetName(playerid));
GameTextForPlayer(playerid,str,10000,3);
format(str, sizeof(str), "%s please /Login [PassWord] <> ", GetName(playerid));
SendClientMessage(playerid, COLOR_BRIGHTRED, str);
}
//==============================================================================
stats[playerid] = 0;
Calling[playerid] = -1;
Answered[playerid] = 0;
Callerid[playerid] = 0;
SetPlayerColor(playerid,rgba2hex(random(256),random(256),random(256),80));
return 1;
}
then how i combine it?? i try and when i connect to my server nothing happen
but i want it in my mode because i have 16 filterscripts can you help me to combine it with my mode?
ok i succed to combine it but now i cheak it with my friend and when He is ID 0 he see the RESPAN IN:6.0 and I(ID 1) I don't see it