Time convert
#5

here's the whole command

CMD:arrest(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid,5,1525.4839,-1677.7625,5.8906))return SendClientMessage(playerid,adminrot,"Du bist nicht am Arrest Punkt.");
new otherplayerid, grund[128], Zeit;
if(sscanf(params, "uis[128]",otherplayerid,Zeit,grund))return SendClientMessage(playerid,adminrot,"INFO: /arrest [id][Zeit in Millisekunden][grund]");
if(GetPlayerWantedLevel(otherplayerid) == 0)
{
SendClientMessage(playerid,adminrot,"Der Spieler hat keine Wanteds.");
return 1;
}
if(!IsPlayerConnected(otherplayerid))
{
SendClientMessage(playerid,rot,"Der Spieler ist nicht online!");
return 1;
}
else
{
SetPlayerPos(otherplayerid,263.8904,77.4725,1001.0 391);
SetPlayerInterior(otherplayerid, 6);
sInfo[playerid][payday] += 1500;
SetPlayerWantedLevel(otherplayerid,0);
SetTimerEx("unarrest",Zeit,false,"i",otherplayerid );
for(new i=0; i<MAX_PLAYERS; i++)
if(isPlayerInFrakt(i, 2))
{
if(onlspdduty[playerid] == false)return SCM(playerid,adminrot,"Du bist nicht im Dienst.");
new string[128];
format(string,sizeof(string),"HQ: Der Spieler %s[%i] wurde festgenommen. Grund: %s",sInfo[otherplayerid][rpname],otherplayerid,grund);
SendClientMessage(i,hqinfo,string);
}
}
return 1;
}
Reply


Messages In This Thread
Time convert - by ImTobi - 24.10.2017, 20:49
Re: Time convert - by CodeStyle175 - 24.10.2017, 20:53
Re: Time convert - by ImTobi - 24.10.2017, 20:59
Re: Time convert - by kingmk - 24.10.2017, 21:00
Re: Time convert - by ImTobi - 24.10.2017, 21:02
Re: Time convert - by kingmk - 24.10.2017, 21:03
Re: Time convert - by ImTobi - 24.10.2017, 21:07
Re: Time convert - by CodeStyle175 - 24.10.2017, 21:52
Re: Time convert - by Danisoni - 24.10.2017, 22:07
Re: Time convert - by NeewFooX - 25.10.2017, 13:26

Forum Jump:


Users browsing this thread: 2 Guest(s)