@@ -2242,7 +2242,11 @@ stock void CreateBlock(int client, int targetId = 0, int length = -1, int type,
2242
2242
2243
2243
if (target && IsClientInGame (target ))
2244
2244
{
2245
- if (! GetClientAuthId (target , AuthId_Steam2 , auth , sizeof (auth )))
2245
+ if (! GetClientAuthId (target , AuthId_Steam2 , auth , sizeof (auth ), false ))
2246
+ {
2247
+ g_bPlayerStatus [target ] = false ;
2248
+ }
2249
+ if (strncmp (auth [6 ], " ID_" , 3 ) != 0 )
2246
2250
{
2247
2251
g_bPlayerStatus [target ] = false ;
2248
2252
}
@@ -2432,10 +2436,28 @@ stock void ProcessUnBlock(int client, int targetId = 0, int type, char[] sReason
2432
2436
{
2433
2437
int target = target_list [i ];
2434
2438
2435
- if (IsClientConnected (target ))
2436
- GetClientAuthId (target , AuthId_Steam2 , targetAuth , sizeof (targetAuth ));
2437
- else
2438
- continue ;
2439
+ if (target && IsClientConnected (target ))
2440
+ {
2441
+ if (! GetClientAuthId (target , AuthId_Steam2 , targetAuth , sizeof (targetAuth ), false ))
2442
+ {
2443
+ g_bPlayerStatus [target ] = false ;
2444
+ continue ;
2445
+ }
2446
+ if (strncmp (targetAuth [6 ], " ID_" , 3 ) != 0 )
2447
+ {
2448
+ g_bPlayerStatus [target ] = false ;
2449
+ continue ;
2450
+ }
2451
+ }
2452
+
2453
+ if (! g_bPlayerStatus [target ])
2454
+ {
2455
+ // The target has not been blocks verify. It must be completed before you can unblock anyone.
2456
+ char name [32 ];
2457
+ GetClientName (target , name , sizeof (name ));
2458
+ ReplyToCommand (client , " %s%t " , PREFIX , " Player Comms Not Verified" , name );
2459
+ continue ; // skip
2460
+ }
2439
2461
2440
2462
switch (type )
2441
2463
{
@@ -2472,7 +2494,10 @@ stock void ProcessUnBlock(int client, int targetId = 0, int type, char[] sReason
2472
2494
2473
2495
if (IsClientInGame (target ))
2474
2496
{
2475
- GetClientAuthId (target , AuthId_Steam2 , targetAuth , sizeof (targetAuth ));
2497
+ if (! GetClientAuthId (target , AuthId_Steam2 , targetAuth , sizeof (targetAuth ), false ))
2498
+ g_bPlayerStatus [target ] = false ;
2499
+ if (strncmp (targetAuth [6 ], " ID_" , 3 ) != 0 )
2500
+ g_bPlayerStatus [target ] = false ;
2476
2501
}
2477
2502
else
2478
2503
{
@@ -3396,4 +3421,4 @@ public int Native_GetClientGagType(Handle hPlugin, int numParams)
3396
3421
3397
3422
return g_GagType [target ];
3398
3423
}
3399
- //Yarr!
3424
+ //Yarr!
0 commit comments