31.08.2011, 04:46
I realy need help please in here how i can define 2 ids and work when 2 players enter checkpoint
so when Swat player /drag other player and enter the other play with his car show Swat name and suspect name please help
so when Swat player /drag other player and enter the other play with his car show Swat name and suspect name please help
Код:
public OnPlayerEnterCheckpoint(playerid) { //new cpid = CPS_GetPlayerCheckpoint(playerid); new string[256]; if(getCheckpointType(playerid) == 18 && getCheckpointType(playerid) == 18) { if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) <= 5 && PlayerDragged[playerid] == 1) { GetPlayerName(swatid,swatname,55); SendClientMessage(playerid, 0xA9A9A9AA, "|_Los Santos Police Department_|"); format(string, sizeof(string),"Swat-Member %s(%d) Has handed %s(%d) in lspd and been jailed"); new rnd; rnd = random(sizeof (ArrestedSpawn)); SetPlayerPos(playerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]); SetPlayerFacingAngle(playerid, ArrestedSpawn[rnd][3]); SetPlayerInterior(playerid,6); SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early"); Jailed[playerid] =1; StoleCopCarRecent[playerid] =0; cannotescapejail[playerid] =1; ResetPlayerWeapons(playerid); JailTime[playerid] =60; JailTimeServed[playerid] =0; SetPlayerWantedLevel(playerid,0); oscore = GetPlayerScore(playerid); SetPlayerScore(playerid, oscore +1); return 1; } }