Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:pullover(playerid, params[]) {
- if(playerVariables[playerid][pStatus] >= 1) {
- if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1) {
- if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You're not in a vehicle.");
- new
- queryString[255];
- textString[128];
- GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
- format(textString, sizeof(textString), "(megaphone) %s says: This is the LSPD, please pull over. Turn off your engine and remain seated.", szPlayerName);
- nearByMessage(playerid, COLOR_HOTORANGE, textString, 50.0);
- mysql_real_escape_string(textString, textString);
- format(queryString, sizeof(queryString), "INSERT INTO chatlogs (value, playerinternalid) VALUES('%s', '%d')", textString, playerVariables[playerid][pInternalID]);
- mysql_query(queryString);
- }
- else SendClientMessage(playerid, COLOR_GREY, "You're not a law enforcement officer.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement