03.07.2012, 04:52
(
Последний раз редактировалось UserName31; 03.07.2012 в 04:59.
Причина: mess up something here
)
So i got this -->
it works and all but the problem is i can use it every time i want and i want to fail some of time please help if need any part of scrip just ask
PHP код:
dcmd_escape(playerid,params[])
{
#pragma unused params
new string[128];
new ID;
//Others
ResetPlayerWeapons(ID);
SendClientMessage(playerid,COLOR_RED,"[[_You Have Escaped From Jail!_]]");
SendClientMessage(playerid,COLOR_PINK,"A better /escape command");
SendClientMessage(playerid,COLOR_PINK,"Coming Soon!");
JailTime[ID] =1;
IsCuffed[ID] =0;
CuffTime[ID] =0;
TotalJailTime[ID] =1;
SetPlayerInterior(ID,10);
TogglePlayerControllable(ID,1);
SetPlayerWantedLevel(ID,6);
SetPlayerToTeamColour(ID);
return 1;
}
PHP код:
dcmd(escape,6,cmdtext);